Filter löschen
Filter löschen

Change all elements in 2nd column to 3

1 Ansicht (letzte 30 Tage)
nty huy
nty huy am 27 Sep. 2019
Kommentiert: James Tursa am 27 Sep. 2019
vArr = [ 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5; 5 5 5 5 ]
so i have this and i knw how to change one element but how to change whole colum??
i tired this vArr( :, 3 ) - 2 but then only shows one column
  1 Kommentar
James Tursa
James Tursa am 27 Sep. 2019
vArr(:,3) is the 3rd column. vArr(:,2) is the 2nd column. Etc.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

James Tursa
James Tursa am 27 Sep. 2019
Bearbeitet: James Tursa am 27 Sep. 2019
vArr(:,2) = _____; % <-- you fill in the blank
  6 Kommentare
nty huy
nty huy am 27 Sep. 2019
because im seeing what i can do and you are not helping stop answering my questions if you are not goin to help, DO NOT ANSWER MY QUESTIONS ANYMORE
James Tursa
James Tursa am 27 Sep. 2019
Wow ... uh ... OK, no more answers from me ...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by