필터 지우기
필터 지우기

how can I create meshgrid of given data?

조회 수: 8 (최근 30일)
Deepesh Kumar Gupta
Deepesh Kumar Gupta 2022년 4월 24일
댓글: Deepesh Kumar Gupta 2022년 4월 24일
I have successfully created 7*7 meshgrid of given three types of data, which is given below
ecc=(.018:.001:.024) ;
phi=(34:1:40);
theta = (-3:1:3);
[e, ph, th] = meshgrid(ecc,phi,theta)
But i am getting error while creating 6*6 meshgrid of given 4 types of data, which is given below
temp=(370:1:375);
rad=(.009:.001:.014) ;
ecc=(.019:.001:.024);
phi = (35:1:40);
[T, r, e, ph] = meshgrid(temp,rad,ecc,phi);
how can i solve this? please help me with corrected code.

채택된 답변

Torsten
Torsten 2022년 4월 24일
Use "ndgrid" instead of "meshgrid".
"meshgrid" is for 2d- and 3d-grids.
  댓글 수: 1
Deepesh Kumar Gupta
Deepesh Kumar Gupta 2022년 4월 24일
Thank you so much @Torsten.The problem has been solved.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by