How to remove the part of a signal less than xaxis =0 along with the peak
1 次查看(过去 30 天)
显示 更早的评论
Hello All,
Could you please help me with the MATLAB command to remove(trim) part of the signal highlighted in red colour in the image
![MATLABquery.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/225835/MATLABquery.jpeg)
0 个评论
采纳的回答
Vishnu Vardhan
2019-6-21
Hi Ashwini
you can use find function available in MATLAB
idx = find(x>=0);
plot(x(idx) ,y(idx)) %where x and y are the axis
Hope that helps!
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!