Code covered by the BSD License  

Highlights from
Draw grpah of a function on matrix

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 2.18 KB File ID: #32061
image thumbnail

Draw grpah of a function on matrix

by David Silver

 

04 Jul 2011

FCN2MAT Convert user-defined single-valued function to matrix

| Watch this File

File Information
Description

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)

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
function plotting David Silver 05 Jul 2011 11:23:11
plot David Silver 05 Jul 2011 11:23:11
draw David Silver 05 Jul 2011 11:23:11
plot function David Silver 05 Jul 2011 11:23:11
discrete David Silver 05 Jul 2011 11:23:11
function David Silver 05 Jul 2011 11:23:11
custom function David Silver 05 Jul 2011 11:23:11
visualization David Silver 05 Jul 2011 11:23:11
graph David Silver 05 Jul 2011 11:23:11

Contact us at files@mathworks.com