MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何在disp()中使用tab? (https://www.labfans.com/bbs/showthread.php?t=26530)

poster 2019-12-14 20:13

如何在disp()中使用tab?
 
disp(['counter ' num2str(blk) (here I need a tab!!!) 'adc ' num2str(adc_nr)])

[B]回答:[/B]

尝试

disp(['counter ' num2str(blk) 9 'adc ' num2str(adc_nr)]) 说明:通常,如果要插入选项卡,请在字符串中放置一个'\ t'。这对于sprintf效果很好,但是disp命令不能正确解释它。因此,一种解决方案是直接输入制表符的ASCII值“ 9”。



[url=https://stackoverflow.com/questions/5232196]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 11:00

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.