How to remove negative value at the out put..
조회 수: 7 (최근 30일)
이전 댓글 표시
Please help me friends.. how to get rid of this negative values..?
댓글 수: 0
답변 (1개)
Image Analyst
2015년 4월 24일
What does "get rid of" mean? Do yoiu want to change the limits of the y axis? Do you just want to get new data values by subtracting the min from all your data:
y = y - min(y);
Do you just want to remove negative values from the data:
y(y<0) = [];
댓글 수: 5
Jakey Wang
2020년 3월 20일
The second code is actually so good. I used it in my coursework. Thank you!!
참고 항목
카테고리
Help Center 및 File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!