Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Firas Al-Kharabsheh
Firas Al-Kharabsheh am 9 Apr. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 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 ???

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 9 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 9 Apr. 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

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by