Save and load matrix. Size problem

Hi.
I want to save a matrix to use it later but when I load it, it has the size (1 , 1)
I want to save my matrix called Mat1.
I used save('C:\User\Desktop\Matrix1' , 'Mat1') and M1=load('C:\User\Desktop\Matrix1') but i get to size(M1)=(1,1) instead of the actual size of my matrix and i can't work with it.
What should I do?
Thanks in advance

 采纳的回答

Check M1 might be a structure......try
size(M1.Mat1)

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by