i want to initialize a matrix of 3x3 to value -1 how this colud be done?

2 次查看(过去 30 天)
M=zeros(3,3); intialize M with zeros of 3x3 but what to do if i want to initialize it with -1
i.e
-1 -1 -1
-1 -1 -1
-1 -1 -1
can anybody help me

采纳的回答

Yao Li
Yao Li 2013-4-11

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by