New to matlab and I need some help.
I need to create a .mat file , using matObj or save(), that has some information that will be passed from some variable. Lets say that variable x = 1,2,3,4,5
1|2|3|4|5|
Then I need to save that in test.mat
Then I need to load that file and save something like,
6|7|8|9|10|
So I get
1|2|3|4|5|
6|7|8|9|10|
and so on.
So every time I save it goes to a new row. The numbers that go inside they are not random the above numbers are just there to make things simple to see.
Can someone help me out.
I’m sure any amount of googling will get you how to save a variable to a mat file – The matlab docs are absolutely spectacular, and such a simple operation will be covered along with examples showing exactly how to use the functions.
As for the second part, use the concatenation property
to concatenate horizontally, and
to concatenate vertically. Then resave the same way that you just learned via google.
Hope this helps, and in the future, i guarantee 99% of the answers to a new user’s questions will be in the top two google search results if you append “matlab” to your search. The Mathworks really set the bar on documentation in my opinion. (Of course, I last used MATLAB 3 years ago)