The function plots in MATLAB® allows you to easily visualize functions:
This "eziplot" will create an interactive plot where all of the parameters become tunable. Just pass the function as an anonymous function, and it will automatically detect the parameters.
Any of the following function plots are supported: ezcontour, ezcontourf, ezmesh, ezmeshc, ezplot, ezplot3, ezpolar, ezsurf, ezsurfc, fplot
Created in R2008a, but should work in older releases.
Example:
a = 1;
eziplot({@(x) sin(a*x)});
a = 1;
b = 2;
f2 = @(t) a*sin(b*t);
f3 = @(t) b*cos(a*t);
eziplot({f2, f3})
a = 1;
b = 1;
f4 = @(x,y) y./(1 + a*x.^2 + b*y.^2);
eziplot({f4}, 'plotfcn', 'ezmeshc');
Citation pour cette source
Jiro Doke (2025). EZIPLOT (https://www.mathworks.com/matlabcentral/fileexchange/19805-eziplot), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.1.0.1 | Updated license |
||
1.1.0.0 | Copyright update. |
||
1.0.0.0 |