Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I am trying to eliminate the negative Y-axis (-0.2 portion in the image below). So that the Y-axis of the graph starts from zero. I have attached the .mat file. Please help me out. Here is my code:
조회 수: 4 (최근 30일)
이전 댓글 표시
clc
a=importdata('robin roy.mat');
b=a.data;
x=b(22000:25830,1);
plot(x);
x(x<0)=[];
findpeaks(x);
findpeaks(x,'MinPeakHeight',1.15);

댓글 수: 0
답변 (1개)
Geoff Hayes
2017년 3월 14일
ylim([0 1.4]);
댓글 수: 2
Geoff Hayes
2017년 3월 14일
Hmmm...it works fine when I do something like
x = -2*pi:0.01:2*pi;
y = sin(x);
plot(y);
ylim([0 2])
What happens when you try the above example code?
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!