Merge Structures

版本 1.0.0.0 (1.5 KB) 作者: Grant Lohsen
Merges two structures of equal sizes.
266.0 次下载
更新时间 2011/6/15

查看许可证

A simple function to merge two structures as long as they are the same size.
Ex:
[test1(1:2,1:2).A] = deal(1,2,3,4)
[test2(1:2,1:2).B] = deal(5,6,7,8)
out = fJoinStructures(test1, test2)
out =
2x2 struct array with fields:
B
A

引用格式

Grant Lohsen (2024). Merge Structures (https://www.mathworks.com/matlabcentral/fileexchange/31809-merge-structures), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0