You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
%DEPLOYFIELDS deploys all fields of the structure 'details', as variables,
% inside the caller's workspace.
%
%Syntax:
%DEPLOYFIELDS(details);
%DEPLOYFIELDS('structVarName');
%DEPLOYFIELDS;
%
%DEPLOYFIELDS accepts either a structure variable, or a name
% of a structure variable. The latter is faster because it doesn't involve
% copying the structure.
%
%If no argument is passed, DEPLOYFIELDS searches for the default structure
%variable name: 'details'.
Most common usage :
function [] = foo(details)
%default values:
a=1;
b=2;
deployfields; %deploy details. if details has fields .a .b, they will overwrite the default values.
...
....
.....
Cite As
Elimelech Schreiber (2026). deployFields (https://www.mathworks.com/matlabcentral/fileexchange/69247-deployfields), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (1.53 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
