Info

此问题已关闭。 请重新打开它进行编辑或回答。

can I abbreviationv these steps to few steps?

1 次查看(过去 30 天)
Mary Jon
Mary Jon 2013-10-4
关闭: MATLAB Answer Bot 2021-8-20
v_now=zeros(111,34);
v_now(1,2:33)=100;
v_now(6,14:21)=100;
v_now(5,2:5)=0;
v_now(5,30:33)=;
  5 个评论
Walter Roberson
Walter Roberson 2013-10-5
You could remove the v_now(5,2:5)=0; as those locations were already set to 0 because you used zeros() to initialize the matrix.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by