structobj

版本 1.0.0.0 (10.3 KB) 作者: Jonathan Suever
Wrapper for the built-in MATLAB struct data structure
58.0 次下载
更新时间 2017/4/13

This is a class that simply wraps the functionality of the built-in struct datatype, but adds a number of useful features. The most notable feature, is that a structobj is a handle class and is therefore passed by reference to other functions. This allows you to essentially modify the structure in-place.
Instances of this class behave so similarly to the built-in datatype that they can often be fed as inputs to functions that expect structures as inputs.
Additional functionality:
* "Updated" event for when underlying data is changed
* Conversion back to standard structs
* Easily merge structobj instances or structures
* Compatibility with all standard struct functionality (isfield, setfield, getfield, dynamic fieldnames, concatenation, orderfields, fieldnames, tab completion, etc.)

引用格式

Jonathan Suever (2024). structobj (https://github.com/suever/structobj), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
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!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.0.0

Fixes small bug in getfield
Changed project name

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库