Unfold Named Parameter Struct
バージョン 1.0.1 (2.51 KB) 作成者:
Bernard Beitz
Use this helper function if you want to call a function multiple times but each time with different values of named parameter.
Generate multiple named parameter combinations from a single struct that contains arrays.
Example:
my_struct.LineWidth = 0.5:0.5:2;
out = unfold_named_parameter_struct(my_struct);
xy = rand(10,4);
axis = axes;
hold(axis, "on");
plot(axis, xy(:,1), xy(:,2), out{1}{:}) % 'Color','red','LineWidth',0.5
plot(axis, xy(:,3), xy(:,4), out{8}{:}) % 'Color','green','LineWidth',2
hold(axis, "off");
引用
Bernard Beitz (2024). Unfold Named Parameter Struct (https://github.com/bernb/unfold-named-narameter-struct/releases/tag/1.0.1), GitHub. 取得済み .
MATLAB リリースの互換性
作成:
R2022a
R2019b 以降のリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxタグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.1 | See release notes for this release on GitHub: https://github.com/bernb/unfold-named-narameter-struct/releases/tag/1.0.1 |
||
1.0.0 |
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。