Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
disp(['counter ' num2str(blk) (here I need a tab!!!) 'adc ' num2str(adc_nr)])
尝试
disp(['counter ' num2str(blk) 9 'adc ' num2str(adc_nr)])
解释:通常如果你想插入一个制表符,你在字符串中放一个'\t'。这适用于sprintf,但该disp命令无法正确解释它。所以一种解决办法是直接把tab的ASCII值放上去,也就是'9'。
sprintf
disp