Draw grpah of a function on matrix
Version 1.0.0.0 (2.18 KB) by
David Silver
FCN2MAT Convert user-defined single-valued function to matrix
Convert user-defined single-valued function to matrix.
FCN2MAT is used to 'draw' the graph of a single-valued function on a matrix.
You can 'plot' a function f(x) on a matrix.
The image above is the output of the following:
[ grph,approx ] = fcn2mat('sin(x)*cos(2*x)',-6,6,0.03,3,0.03,-2,2);
imshow(approx)
Cite As
David Silver (2024). Draw grpah of a function on matrix (https://www.mathworks.com/matlabcentral/fileexchange/32061-draw-grpah-of-a-function-on-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Data Type Conversion in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |