Error after load *.fig files

I have get:
pytanie=questdlg('Please choose an option:', ...
'Main question', ...
'Manual', 'Automatic', 'Cancel', 'Cancel');
switch pytanie
case 'Manual'
disp([pytanie ': So you like a handwork...?! As your wish...'])
load (OCR_GUI, '-mat')
break
case 'Automatic'
disp([pytanie ': Are you too lazy...?! Ow...'])
load (OCR_Auto, '-mat')
break
case 'Cancel'
disp('HA! I knew it!')
end
It works...but... i have this error after show disp and load file... (those 2 files are *.fig files).
??? Error using ==> load
Argument must contain a string.
Error in ==> Main_choose at 15
load (OCR_GUI, '-mat')
How can i delete this error ?

 採用された回答

Image Analyst
Image Analyst 2013 年 1 月 6 日

0 投票

Why would you use load() on a fig file?

1 件のコメント

Image Analyst
Image Analyst 2013 年 1 月 6 日
Why did you accept this?

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

その他の回答 (1 件)

Pawel
Pawel 2013 年 1 月 6 日
編集済み: Pawel 2013 年 1 月 6 日

0 投票

I should use it on a .m file? or what...?
I have 2 files made in guide and i want to load them... what i have to use if load is wrong?

2 件のコメント

Image Analyst
Image Analyst 2013 年 1 月 6 日
This should have been a comment, not an Answer. To run the file, you type the name into the command window, or your script (don't use eval), or you click the green triangle. Why are you putting up this intermediate question? Why wouldn't the users just run the file they want to run directly instead of using your program???
Pawel
Pawel 2013 年 1 月 6 日
Sorry, this is my first time in this forum :/
Omg... i'm stupid... now i got it... ty...

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

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by