Automatically Run Script MatLab
조회 수: 5 (최근 30일)
이전 댓글 표시
Come posso fare per scrivere uno scripts matlab che restituisca gli elementi di una matrice in coppia?
Se scrivo A = [1 2 3; 4 5 6; 7 8 9]; crea la matrice ogni volta.
Se scrivo: load ('filename.mat') Error using load
Unable to read file 'Filename.mat'. No such file or directory.
Posso visualizzare la matrice solo se la digito sulla command window
댓글 수: 0
채택된 답변
Image Analyst
2021년 5월 27일
Is your mat file called "filename.mat"? Or do you have the actual name in filename, like
filename = 'abc.mat';
? If filename is one of your variables, try this:
s = load(filename) % Load structure containing all the variables in the .mat file.
댓글 수: 3
Image Analyst
2021년 5월 28일
OK. Good luck. Write back if you have any questions, and attach your code and .mat file.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!