Colour code to find how big a function is

2 ビュー (過去 30 日間)
Behi
Behi 2022 年 5 月 26 日
コメント済み: Behi 2022 年 5 月 28 日

Hi, I have 3D orbit, I want to write a code that pick each points (particularly its x &y not z) on this orbit and then calculate a function
f= (y-x)/1+x^2 correspond to the points on orbit. After that I want color code for the surface for function. In fact, I have to use color code to see how big is the function as we go around the orbit.
I would appreciate if any one could help me.

採用された回答

Walter Roberson
Walter Roberson 2022 年 5 月 26 日
編集済み: Walter Roberson 2022 年 5 月 26 日
  13 件のコメント
Walter Roberson
Walter Roberson 2022 年 5 月 28 日
Google Drive?
Behi
Behi 2022 年 5 月 28 日
Here you are:
https://drive.google.com/file/d/1R-S_XGaOPpwIGOLj1ZBC0x9Dw_SFTPYB/view?usp=sharing

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

その他の回答 (1 件)

KSSV
KSSV 2022 年 5 月 26 日
x = linspace(-1,1) ;
y = linspace(-1,1) ;
[X,Y] = meshgrid(x,y) ;
F = (Y-X)./(1+X.^2) ;
surf(X,Y,F)
  1 件のコメント
Behi
Behi 2022 年 5 月 26 日
Thanks for the answer, the point is that the 3D orbit that I have is not a circle or specific orbit (it is imported, and I don't have its function), and I want to know is there a way in Matlab that moves on the orbit and for each point on it, plot the suface which has the function f with colour code..I have also attached the orbit to see

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

カテゴリ

Help Center および File ExchangeEarth and Planetary Science についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by