Hello everyone
I have 3 parameters
t(s),sliprate(m/s),y(km)
now I want to have a stacked plot for sliprates against time that is the same for all.Each sliprate should be ploted at its y position.
I used the following code
t=time(:,1); %10000*1
y=alongstrike(1,:); %1*41 (-100:5:100)
hold all
for i=1:41
plot(time(:,i),sliprate(:,i)+alongstrike(1,i)) %sliprate is 10000*41
end
my problem is that I can't see the sliprate movement,its so small.they should all look like real waves. I attached my figure .Can you tell me what could get fixed

 채택된 답변

Star Strider
Star Strider 2019년 1월 21일

0 개 추천

I can barely see any variation, even when I enlarge the image.
One option is simply to amplify them, perhaps by 100, and note that in the information about the plot:
plot(time(:,i),sliprate(:,i)+alongstrike(1,i) * 100) %sliprate is 10000*41

댓글 수: 3

Samaneh Arzpeima
Samaneh Arzpeima 2019년 1월 21일
Thank you for your time
but there should be ,if I draw in 3d it looks like this attached file.I used the exact same data.
Samaneh Arzpeima
Samaneh Arzpeima 2019년 1월 21일
Sorry,you are right,if I multiple my 'sliprate' data by 100 the vibration will be vivid. but now my y axis wont be between -100 and 100, and how can I add an scale to my plot.
Too many question,sorry for that,but I really appreciate your help
Star Strider
Star Strider 2019년 1월 21일
My pleasure.
No worries!
the ‘test3d.jpg’ image looks like a plot3 (link) or a ribbon (link) plot. Experiment with them. You will likely get the result you want. You may have to modify the width property of the ribbon plot to get a result similar to that image.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

제품

질문:

2019년 1월 21일

댓글:

2019년 1월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by