Contour/3d plots for large data sets

2 ビュー (過去 30 日間)
A
A 2015 年 1 月 16 日
コメント済み: Henrik 2015 年 1 月 16 日
Hello,
I would like to generate a contour or 3-D plot for a large data set.
I have a matrix B, where size(B)= 483060 4
The parameters contained in B are as follows:
if true
time=B(:,1); %first column is temperature
sy=B(:,2); %second column is distnce in y
tl=B(:,3); %third column is temperature l
te=B(:,4); %fourth column is temperature e
end
I would like to 3-D plot of both tl and te in time and space (sy).
I have tried contour3(time,sy,tl) but recieve the error
"Z must be at least a 2x2 matrix."
Best,
A

回答 (1 件)

Henrik
Henrik 2015 年 1 月 16 日
Try plot3 or scatter3
For a contour plot you need a nxn matrix
  2 件のコメント
A
A 2015 年 1 月 16 日
Thanks, I tried that and it gives me the right shape, however I would like to have a color associated with the intensity of a parameter (say, te). Any idea how to do this?
Henrik
Henrik 2015 年 1 月 16 日
scatter or scatter3 can do that.

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

カテゴリ

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