How to import text present in figure to excel?
1 view (last 30 days)
Show older comments
yojitha etikala on 27 Jan 2022
Commented: Ankit on 3 Feb 2022
I wrote text in figure.For example:
text(0,0.5,sprintf([ 'speed = %0.1f kmph (%0.1f miles/hour)\n'
'time = %0.1f min \n '
And the output:
How want import this output to excel?
Thank you in advance
Ankit on 28 Jan 2022
There is one way to write the output to *.xlsx-File.
filename = 'Test.xlsx';
str = sprintf(['speed = %0.3f kmph \n' 'time = %0.1f min \n '],speed,time);
OutPut = cellstr(str);
Ankit on 3 Feb 2022
Yes one can avoid that step but it is not clear how he is getting the data. I just used the def values.. whether he is displaying that data in figure etc.. if not then text command is not required..
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!