Create a nxn matrix with the same values

16 次查看(过去 30 天)
Hi all, Is there other methods to create an nxn matrix with the same values? I found a method which is
B(1:9, 1:9) = 3
that is perfect but, there is a different method?

采纳的回答

Rick Rosson
Rick Rosson 2015-2-25
  2 个评论
Gangadhar Venkata Ramana
I have been trying to multiply a scalar value to 2D matix inside the batch parallel processing.
I am unable to scale the matrix with the scalar value. An error showing, matix dimensions must agree.
Kindly suggest a solution.
Thank you

请先登录,再进行评论。

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by