Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

if i have a vector , i want to subtract it with value ?

1 visualización (últimos 30 días)
Firas Al-Kharabsheh
Firas Al-Kharabsheh el 9 de Abr. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
if i have this vector
v = [ 10
5
3
5
6
7 ]
and i want to subtract it by 3 then the solution will be like that
v = [ 7
2
0
2
3
4]
how can i do this ???

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 9 de Abr. de 2016
Editada: Azzi Abdelmalek el 9 de Abr. de 2016
You need to read about arrays and matrices http://www.mathworks.com/help/matlab/matrices-and-arrays.html and before asking you could just try
v-3

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by