How do I visually represent points on a graph?

4 ビュー (過去 30 日間)
Oliver Goldsmith
Oliver Goldsmith 2017 年 8 月 11 日
編集済み: José-Luis 2017 年 8 月 11 日
Hi, I have data from 10 wave probes situated around a tank. I have found the percentage change at each of these probes for various wave buoys layouts within the tank and was wondering whether it is possible to represent these on a surface in matlab?
i've tried using surf but it says my z(%change) needs to be a matrix not a vector or scalar
the location of each probe is:
x=
8500
8500
9800
9800
11800
11800
13800
13800
16800
16800
y=
1000
-1000
-1750
-3750
-1750
-3750
-1750
-3750
1000
-1000
%change=
1.98699625630532
5.10041883616840
-8.47874954187543
-4.08563792135973
7.71330184023595
8.78867861058347
-14.9605802234170
-3.17825963425018
-20.6789076505716
-12.7915246561184
I would like to represent the position of the probe on a surface as a circle with its colour denoting the %change whereby 0=yellow negative=red positive=green
is this possible??
thank you
  2 件のコメント
José-Luis
José-Luis 2017 年 8 月 11 日
If you want points:
plot3();
If you want a surface, you'd need to interpolate.
scatteredInterpolant()
Oliver Goldsmith
Oliver Goldsmith 2017 年 8 月 11 日
ive been playing and what i basically want is scatter(x,y,60,jet(%change),'filled') but cant seem to make the colour of the circles match %change

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

採用された回答

José-Luis
José-Luis 2017 年 8 月 11 日
編集済み: José-Luis 2017 年 8 月 11 日
scatter(x,y,60,change,'filled');
colormap('jet');

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by