"Apart from syntax errors, perhaps the most common problem with using script files is that MATLAB cannot locate the script file you wish to execute. This error can be very frustrating to inexperienced MATLAB users because MATLAB gives the error message
??? Undefined function or variable ...
and it is not immediately clear why the function is undefined when its m-file is clearly visible to the user. The solution to this is to make sure that MATLAB's internal path variable is set to the direction containing the script. Refer to the ``Setting the MATLAB Path'' of this reference for help on setting the path. "
** Kesimpulannya, bukan software problem. Kepala otak aku yang problem. Ade ke patut change directory file dekat dalam F:\MATLAB, tapi aku pi save M file dekat desktop. Memang la tak boleh jalan. dush!dush! *_*"
credit to http://web.cecs.pdx.edu/~gerry/MATLAB/programming/scripts.html sebab solve kan problem aku yang bengong ni. tenkiu mister tenet.


mcm penah ku dengar subjek ini..tp,di mana ya??? wahahaha!~ br kuingat!! penah kna wat esemen guna matlab!!!! (padahal xde lam syllabus pon..haih~~)
ReplyDeletehahaha..
ReplyDeleteakak tau ke pakai matlab ni?
Macam menarik je bunyi nye tu..
;p