plotting of points

1 回表示 (過去 30 日間)
developer
developer 2011 年 7 月 6 日
Hello
I have a plot like (1) and some how i want it to be like (2) by applying some algorithm on point values either take some mean or euclidean distance , but the actual points needs to be same like i have 160 total points so the figure that will be like figure (2) also needs to have the same number of points
(1)http://s1204.photobucket.com/albums/bb403/attayyabkhan/?action=view&current=pic.jpg
(2)http://s1204.photobucket.com/albums/bb403/attayyabkhan/?action=view&current=pic2-1.jpg
each point has 3 values x,y and z values
  1 件のコメント
Harry MacDowel
Harry MacDowel 2011 年 7 月 6 日
what are you asking here? how to turn (1) into (2)?

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

回答 (1 件)

Paulo Silva
Paulo Silva 2011 年 7 月 6 日
%generate some fake data similar to the picture 1
t=1:100;
up=10+2*rand(1,45);
desc=9-(1:10)*rand(1,1);
down=1+2*rand(1,45);
v=[up desc down]';
%filter the signal
windowSize = 6;
vv=filter(ones(1,windowSize)/windowSize,1,v);
%show the graphs
clf
plot(t,v)
hold on
plot(t,vv,'r')
legend('data','rate limited data')

カテゴリ

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