Create a nxn matrix with the same values

조회 수: 19 (최근 30일)
AnnaMaria Accardo
AnnaMaria Accardo 2015년 2월 25일
댓글: Gangadhar Venkata Ramana 2021년 8월 7일
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
AnnaMaria Accardo
AnnaMaria Accardo 2015년 2월 25일
ah! So easy? Sorry. I'm too stupid...
Gangadhar Venkata Ramana
Gangadhar Venkata Ramana 2021년 8월 7일
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에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by