How to use tab in disp ()?

disp(['counter ' num2str(blk) (here I need a tab!!!) 'adc ' num2str(adc_nr)]) 
+8
matlab string-literals ascii tabs
source share
1 answer

Try

 disp(['counter ' num2str(blk) 9 'adc ' num2str(adc_nr)]) 

Explanation: Normally, if you want to insert a tab, you put '\ t' in a string. This works well for sprintf , but the disp command does not interpret it properly. Thus, one solution is to directly value the ASCII tab, which is "9".

+16
source share

All Articles