Difficulties in axes scaling on matrices: 500 values should be 200 Hz - how to handle?
이전 댓글 표시
Hello community,
As described I have difficulties in scaling axes on 3d (or 2d) plots.
For example I have a 100x500 matrix = A
Due to the resolution in data aquisition I have 100 Values on the time axe y and 500 values on the frequency axe x.
I want an easy way in coding that those 500 values describing 200 Hz, and that those 100 Values describing 6 hours.
Until now I always changed the width of the matrix with a factor, so that I only have 200 values.
if true
% maxfr1=zeros(109,1);
maxfr2=zeros(109,1);
maxfr3=zeros(109,1);
maxfr4=zeros(109,1);
for i1= 1:109
maxfr1(i1,1)=maxidx_smooth1(i1,1)*0.39;
maxfr2(i1,1)=maxidx_smooth2(i1,1)*0.39;
maxfr3(i1,1)=maxidx_smooth3(i1,1)*0.39;
maxfr4(i1,1)=maxidx_smooth4(i1,1)*0.39;
end
end
When I plot a 2d or a 3d graph its shown correctly then. But this is very uncomfortable and erases my higher resolution in data aquisition. Until now I have not found a way to do it easily interactive (change ticks only adds or deletes values but is not changing the whole scale)...

I certainly need help :)
Thank you
채택된 답변
추가 답변 (2개)
Florian
2012년 9월 10일
0 개 추천
댓글 수: 6
Florian
2012년 9월 11일
Jan
2012년 9월 11일
There is no reason for apologies, because you are the only one who suffers from missing answers.
Have you seen my new suggestion after the [EDITED] tag?
Florian
2012년 9월 11일
Jan
2012년 9월 11일
Yes.
Set(AxesHandle, 'XData', linspace(0, 200, 50))
The AxesHandle can ge found e.g. by clicking on the axes and using gca afterwards.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!