[R2017a] save nested structure with save, append files, load it and check some 'string' fields with strcmp
0 Comments
Accepted Answer
3 Comments
"how can I delete s1(2)? "
Just like with any other array:
s1(2) = []
"Will s1(3) become the new s1(2)?"
Yes, just like with any other type of array. You can try it yourself:
>> V = 1:3 V = 1 2 3 >> V(2) = [] V = 1 3
"How did you learn these things?"
By reading the documentation a lot, and by reading lots of answers on this forum. Also by experimenting: you could have easily tried it yourself, with a small 1x3 structure, and seen what happens.
"Could you suggest me a good tutorial, book, video to follow?"
Very few of the third-party books or online tutorials I have seen have been very good: some of them are quite dated, or teach inefficient practices, or give outright bad advice. The best source of information about learning MATLAB is... the MATLAB documentation:
https://www.mathworks.com/help/matlab/getting-started-with-matlab.html
https://www.mathworks.com/help/pdf_doc/matlab/index.html
You might like to read this:
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!