Info

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

contour Subscripted assignment dimension mismatch

조회 수: 4 (최근 30일)
Jacco vD
Jacco vD 2016년 8월 15일
마감: Jacco vD 2016년 8월 18일
Hi,
Im trying to add isobars to a plot but i get this error. Subscripted assignment dimension mismatch. I haven't used contour before, but according to the documentation X+Y are equal to Z so i came up with this:
frequency = [7.5 15 30 60 120 240];
nfrequencies = numel(frequency)
duration = 0.5:0.5:8.5;
% for itr see attached file
[X,Y] = meshgrid(1:1:nfrequencies,duration');
contour(X,Y,itr,frequency,'ShowText','on');
[edit]
it should look something like this but this is with fake data. Don't mind the coloured lines:
the itr.mat file contains the data i wanna use for this
  댓글 수: 5
Walter Roberson
Walter Roberson 2016년 8월 16일
That is a line plot, not a contour plot.
I do not have any difficulty plotting with the data you supply. Not a lot shows up, just a single region, but it works.
Please show the complete error message you encounter, everything in red. Also please show the output of
which -all contour
Jacco vD
Jacco vD 2016년 8월 18일
thx for the help, but i its is already fixed. The figure i posted as an example is actually correct.

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by