I keep recieving a undefined function or variable message, but I have defined a variable, what is causing this?
古いコメントを表示
On my last assignment I set variables like Height = data_set1(:,1); and Mass = data_set1(:,2); with no issue. I am now trying to enter this in the editor:
load data_set2.dat
Column1: EMG data for vastus lateralis muscle of right leg.
Column2: EMG data for vastus lateralis muscle of the left leg.
R_emg = data_set2(:,1);
L_emg = data_set2(:,2);
I am receiving the message undefined function or variable 'R_emg' when I enter n = length (R_emg)
I have no idea why. The command worked last week.
3 件のコメント
madhan ravi
2018 年 12 月 2 日
編集済み: madhan ravi
2018 年 12 月 2 日
upload data_set2.dat file to test
Ethan Postans
2018 年 12 月 2 日
Rik
2018 年 12 月 2 日
Please post the code you are are using.
Also, you should always use the S=load(__) syntax which will load the variables into a struct. Then it is clear where variables come from and it becomes possible to track down where an issue might originate from.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!