Using contourmatrix to create contour

2 ビュー (過去 30 日間)
Kieran Hood
Kieran Hood 2011 年 11 月 16 日
コメント済み: Jose Ercolino 2024 年 12 月 16 日
Hi, I've made some modifications to a contour matrix outputted by contourc and want to create a contour from this matrix. Does anyone know how I can do this?

回答 (2 件)

bym
bym 2011 年 11 月 16 日
umm...I'm guessing
contour(modifiedContourMatrix)
  1 件のコメント
Jose Ercolino
Jose Ercolino 2024 年 12 月 16 日
Doesn't work.

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


Fangjun Jiang
Fangjun Jiang 2011 年 11 月 17 日
From help contour
[C,H] = CONTOUR(...) returns contour matrix C as described in CONTOURC and a handle H to a contourgroup object. This handle can be used as input to CLABEL.
From help contourc
C = CONTOURC(Z) computes the contour matrix for a contour plot of matrix Z treating the values in Z as heights above a plane. C = CONTOURC(X,Y,Z), where X and Y are vectors, specifies the X- and Y-axes limits for Z.
Example:
[c,h] = contour(peaks); clabel(c,h), colorbar
So if you modifed the contour matrix c, then you might be able to use it as clabel(c_modified,h), assuming the contour matrix is not messed up.
  1 件のコメント
Jose Ercolino
Jose Ercolino 2024 年 12 月 16 日
Doesn't work. clabel only puts label on the contour plot.

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

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by