repositionStructFie​ld

版本 1.0.0.0 (1.3 KB) 作者: Georg D
a bit more convenient way to reposition fields in a structure
343.0 次下载
更新时间 2011/7/20

查看许可证

function [s] = repositionStructField(s,shiftfield,newpos)
%shiftfield can be fieldname (string) or current position index of field
%newpos can be either new position index of field, or the name of the field (as string) that is
%currently occupying the new position

引用格式

Georg D (2026). repositionStructField (https://ww2.mathworks.cn/matlabcentral/fileexchange/32275-repositionstructfield), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structures 的更多信息
版本 已发布 发行说明
1.0.0.0