[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |

#### 15.1.2.1 Three-dimensional Function Plotting

__Function File:__**ezplot3***(*`fx`,`fy`,`fz`)__Function File:__**ezplot3***(…,*`dom`)__Function File:__**ezplot3***(…,*`n`)__Function File:__**ezplot3***(*`h`, …)__Function File:__`h`=**ezplot3***(…)*Plots in three-dimensions the curve defined parametrically.

`fx`,`fy`, and`fz`are strings, inline functions or function handles with one arguments defining the function. By default the plot is over the domain`-2*pi <`

with 60 points.`x`< 2*piIf

`dom`is a two element vector, it represents the minimum and maximum value of`t`.`n`is a scalar defining the number of points to use.The optional return value

`h`provides a list of handles to the the parts of the vector field (body, arrow and marker).fx = @(t) cos (t); fy = @(t) sin (t); fz = @(t) t; ezplot3 (fx, fy, fz, [0, 10*pi], 100);

__Function File:__**ezmesh***(*`f`)__Function File:__**ezmesh***(*`fx`,`fy`,`fz`)__Function File:__**ezmesh***(…,*`dom`)__Function File:__**ezmesh***(…,*`n`)__Function File:__**ezmesh***(…, 'circ')*__Function File:__**ezmesh***(*`h`, …)__Function File:__`h`=**ezmesh***(…)*Plots the mesh defined by a function.

`f`is a string, inline function or function handle with two arguments defining the function. By default the plot is over the domain`-2*pi <`

and`x`< 2*pi`-2*pi <`

with 60 points in each dimension.`y`< 2*piIf

`dom`is a two element vector, it represents the minimum and maximum value of both`x`and`y`. If`dom`is a four element vector, then the minimum and maximum value of`x`and`y`are specify separately.`n`is a scalar defining the number of points to use in each dimension.If three functions are passed, then plot the parametrically defined function

`[`

.`fx`(`s`,`t`),`fy`(`s`,`t`),`fz`(`s`,`t`)]If the argument 'circ' is given, then the function is plotted over a disk centered on the middle of the domain

`dom`.The optional return value

`h`provides a list of handles to the the parts of the vector field (body, arrow and marker).f = @(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); ezmesh (f, [-3, 3]);

An example of a parametrically defined function is

fx = @(s,t) cos (s) .* cos(t); fy = @(s,t) sin (s) .* cos(t); fz = @(s,t) sin(t); ezmesh (fx, fy, fz, [-pi, pi, -pi/2, pi/2], 20);

__Function File:__**ezmeshc***(*`f`)__Function File:__**ezmeshc***(*`fx`,`fy`,`fz`)__Function File:__**ezmeshc***(…,*`dom`)__Function File:__**ezmeshc***(…,*`n`)__Function File:__**ezmeshc***(…, 'circ')*__Function File:__**ezmeshc***(*`h`, …)__Function File:__`h`=**ezmeshc***(…)*Plots the mesh and contour lines defined by a function.

`f`is a string, inline function or function handle with two arguments defining the function. By default the plot is over the domain`-2*pi <`

and`x`< 2*pi`-2*pi <`

with 60 points in each dimension.`y`< 2*piIf

`dom`is a two element vector, it represents the minimum and maximum value of both`x`and`y`. If`dom`is a four element vector, then the minimum and maximum value of`x`and`y`are specify separately.`n`is a scalar defining the number of points to use in each dimension.If three functions are passed, then plot the parametrically defined function

`[`

.`fx`(`s`,`t`),`fy`(`s`,`t`),`fz`(`s`,`t`)]If the argument 'circ' is given, then the function is plotted over a disk centered on the middle of the domain

`dom`.The optional return value

`h`provides a list of handles to the the parts of the vector field (body, arrow and marker).f = @(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); ezmeshc (f, [-3, 3]);

__Function File:__**ezsurf***(*`f`)__Function File:__**ezsurf***(*`fx`,`fy`,`fz`)__Function File:__**ezsurf***(…,*`dom`)__Function File:__**ezsurf***(…,*`n`)__Function File:__**ezsurf***(…, 'circ')*__Function File:__**ezsurf***(*`h`, …)__Function File:__`h`=**ezsurf***(…)*Plots the surface defined by a function.

`f`is a string, inline function or function handle with two arguments defining the function. By default the plot is over the domain`-2*pi <`

and`x`< 2*pi`-2*pi <`

with 60 points in each dimension.`y`< 2*piIf

`dom`is a two element vector, it represents the minimum and maximum value of both`x`and`y`. If`dom`is a four element vector, then the minimum and maximum value of`x`and`y`are specify separately.`n`is a scalar defining the number of points to use in each dimension.If three functions are passed, then plot the parametrically defined function

`[`

.`fx`(`s`,`t`),`fy`(`s`,`t`),`fz`(`s`,`t`)]If the argument 'circ' is given, then the function is plotted over a disk centered on the middle of the domain

`dom`.`h`provides a list of handles to the the parts of the vector field (body, arrow and marker).f = @(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); ezsurf (f, [-3, 3]);

An example of a parametrically defined function is

fx = @(s,t) cos (s) .* cos(t); fy = @(s,t) sin (s) .* cos(t); fz = @(s,t) sin(t); ezsurf (fx, fy, fz, [-pi, pi, -pi/2, pi/2], 20);

__Function File:__**ezsurfc***(*`f`)__Function File:__**ezsurfc***(*`fx`,`fy`,`fz`)__Function File:__**ezsurfc***(…,*`dom`)__Function File:__**ezsurfc***(…,*`n`)__Function File:__**ezsurfc***(…, 'circ')*__Function File:__**ezsurfc***(*`h`, …)__Function File:__`h`=**ezsurfc***(…)*Plots the surface and contour lines defined by a function.

`f`is a string, inline function or function handle with two arguments defining the function. By default the plot is over the domain`-2*pi <`

and`x`< 2*pi`-2*pi <`

with 60 points in each dimension.`y`< 2*pi`dom`is a two element vector, it represents the minimum and maximum value of both`x`and`y`. If`dom`is a four element vector, then the minimum and maximum value of`x`and`y`are specify separately.`n`is a scalar defining the number of points to use in each dimension.`[`

.`fx`(`s`,`t`),`fy`(`s`,`t`),`fz`(`s`,`t`)]`dom`.`h`provides a list of handles to the the parts of the vector field (body, arrow and marker).f = @(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); ezsurfc (f, [-3, 3]);

[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |