Represent a vector as ± form

2 visualizaciones (últimos 30 días)
Elysi Cochin
Elysi Cochin el 10 de Oct. de 2022
Editada: Elysi Cochin el 10 de Oct. de 2022
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];

Respuestas (1)

KSSV
KSSV el 10 de Oct. de 2022
v1 = [86 90 87 89 88];
iwant = [v1-2;v1+2] % first row is v1+2 and second row is v1-2
iwant = 2×5
84 88 85 87 86 88 92 89 91 90
  2 comentarios
Elysi Cochin
Elysi Cochin el 10 de Oct. de 2022
Editada: Elysi Cochin el 10 de Oct. de 2022
No Sir, I dont want to get the answer, I want the value 88 and the value after ± symbol
I want to get 88 and 2, in the first case, and in the second case I need to find the two values, before the ± symbol and after the ± symbol
KSSV
KSSV el 10 de Oct. de 2022
Taking this as a demo, second one you have to do it yourself.

Iniciar sesión para comentar.

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by