benefits of using "Structs" over "Cells" in MATLAB/Octave?
4 次查看(过去 30 天)
显示 更早的评论
- benefits of using "Structs" over "Cells" in MATLAB/Octave?
1 个评论
Rik
2021-11-17
What is your actual question? These are two different data types. Once you understand them both, you can answer this question yourself. What don't you understand about either?
回答(1 个)
Chunru
2021-11-17
See the documentation: https://www.mathworks.com/help/matlab/matlab_prog/cell-vs-struct-arrays.html
Struct use field name to access data while cell use index to access to data.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Octave 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!