Change all elements in 2nd column to 3

1 次查看(过去 30 天)
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 个)

James Tursa
James Tursa 2019-9-27
编辑:James Tursa 2019-9-27
vArr(:,2) = _____; % <-- you fill in the blank
  6 个评论
nty huy
nty huy 2019-9-27
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 2019-9-27
Wow ... uh ... OK, no more answers from me ...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by