Skip to content
/ WITH.m Public

Adds a function to MATLAB that acts similarly to how WITH does in Excel VBA

Notifications You must be signed in to change notification settings

ben-cha/WITH.m

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

WITH.m

Adds a function to MATLAB that acts similarly to how WITH does in Excel VBA

Takes an object or struct along with a cell of pseudo name-value pairs as arguments and sets the fields/properties according to the name-value pair.

Example:

propset = {'YLabel.String','Temperature', 'XLim', [0 inf]};
WITH(fig, propset)

is equivalent to

fig.YLabel.String = 'Temperature'; 
fig.XLim = [0 inf];

View WITH.m on File Exchange

About

Adds a function to MATLAB that acts similarly to how WITH does in Excel VBA

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages