Is there any way to export the data cursor information to an excel sheet rather than to the command window?

 採用された回答

Doug Hull
Doug Hull 2011 年 5 月 13 日

0 投票

If you can get data to the command window, then you can use XLSWRITE to bring it to Excel.

その他の回答 (1 件)

Mel
Mel 2011 年 5 月 16 日

0 投票

I don't understand. In the command window I simply need to type: cursor_info.Position I tried the following in my gui and it doesnt seem to work: strfil=strrep(handles.sig_file,'.txt',''); xlswrite(strfil,cursor_info.Position,'A1'); It says the following error in the command window: undefined variable cursor_info

3 件のコメント

Walter Roberson
Walter Roberson 2011 年 5 月 16 日
Try
xlswrite(strfil, evalin('global','cursor_info.Position'), 'A1')
Mel
Mel 2011 年 5 月 16 日
I tried that and I get the following error:
??? Error using ==> evalin
Unknown command option.
Walter Roberson
Walter Roberson 2011 年 5 月 16 日
Sorry, I should have said
xlswrite(strfil, evalin('base','cursor_info.Position'), 'A1')

サインインしてコメントする。

タグ

質問済み:

Mel
2011 年 5 月 12 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by