ensureStructsAssign​able( destination, source )

版本 1.0.0.0 (1.2 KB) 作者: Sanjay Manohar
Ensure two structs are compatible for subscripted assignment
12.0 次下载
更新时间 2018/7/2

查看许可证

If you try to do structA(2) = structB, you may get an error saying "Subscripted assignment between dissimilar structures." This function makes the two structures have the same structure by adding extra fields to make them assignable. Missing fields will be assigned 'nan'.

引用格式

Sanjay Manohar (2024). ensureStructsAssignable( destination, source ) (https://www.mathworks.com/matlabcentral/fileexchange/67911-ensurestructsassignable-destination-source), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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