Represent a vector as ± form
이전 댓글 표시
I have a vector
v1 = [86 90 87 89 88];
I want to represent the vector v1 as 88±2
Please please me to represent any vector of any size as ± form?
Another example
v2 = [0.8331;0.8771;0.8531;0.8558;0.8649];
답변 (1개)
v1 = [86 90 87 89 88];
iwant = [v1-2;v1+2] % first row is v1+2 and second row is v1-2
댓글 수: 2
Elysi Cochin
2022년 10월 10일
편집: Elysi Cochin
2022년 10월 10일
KSSV
2022년 10월 10일
Taking this as a demo, second one you have to do it yourself.
카테고리
도움말 센터 및 File Exchange에서 Common Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!