Save and load matrix. Size problem

1 view (last 30 days)
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

Accepted Answer

KSSV
KSSV on 14 Aug 2019
Check M1 might be a structure......try
size(M1.Mat1)

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!