Error due to using the same varname in mat file and matlab function
이전 댓글 표시
I have a mat file (level1.mat) having the following structure. a = 187817x28 tar = 14931x5 zes = 1167x4
To read this file, I used the following procedure. load('level1.mat') a0=a; tar0 = tar; zes0=zes; clear a tar zes
But it gave me an error message like Error using tar (line XX) Not enough input arguments. Error in reader_level1 (line XX) tar0 = tar;
I think the problem might be caused by the duplicate variable name (tar) in mat file and function (tar: to compress file). However, I cannot solve this problem. I do not want to change original mat file but change my code. Could you please help me how to fix this problem? Thank you very much in advance.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!