필터 지우기
필터 지우기

How do I create contour plot of a given matrix?

조회 수: 1 (최근 30일)
Zamra Sajid
Zamra Sajid 2019년 4월 12일
편집: Zamra Sajid 2019년 4월 12일
% out is 20X20 matrix containing values given in v vector
Range1=linspace(1,7,20);
Range2=linspace(1,4,20);
[R1,R2] = meshgrid(Range1,Range2);
T=transpose(out);
v=[-33,21,29,34,40,45];
Nc=length(v);
for ii=1:Nc
M=contour(R1,R2,T,[v(ii) v(ii)],'k');
hold on
end
I am not sure why I am getting such kind of figure I would like to have seperate regions in figure.

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by