필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

surfs and meshplot problem

조회 수: 1 (최근 30일)
Rica
Rica 2012년 11월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi I want to plot a function of two variables with surfc, I get the error Z must be a matrix not a scalor or vector.
My function is like this: %
Z=exp(M.*log(eps)+v.*eps), M=[1:30] eps=[11:40]
I want to plot surfc(Z,M,eps). could you help me?

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 28일

Matt Fig
Matt Fig 2012년 11월 28일
편집: Matt Fig 2012년 11월 28일
[M,EPS] = meshgrid(1:30,11:40);
v = 3;
Z = exp(M.*log(EPS)+v.*EPS);
surfc(M,EPS,Z)
set(gcf,'render','zbuf')

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by