how to plot a function of 3 variables ?

My function is dependent on (x,y,z) ,the mesh grid of x,y,z was obtained from sph2cart function of a meshgrid of r(0.14 to 0.28),theta(0 to 360),phi(90 to -90). I wanted to plot this function in x,y,z plane with tthe function acting as varying intensity.when i used slice function it gave me "Error using griddedInterpolant The grid was created from grid vectors that were not strictly monotonic increasing."

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 6 月 26 日

0 投票

surf(x, y, z, f, 'edgecolor', 'none')

1 件のコメント

Saurav K Shastri
Saurav K Shastri 2016 年 6 月 26 日
It gave me an error on matrix dimensions.

サインインしてコメントする。

カテゴリ

製品

質問済み:

2016 年 6 月 26 日

コメント済み:

2016 年 6 月 26 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by