Skip to main content
15-Moonstone
November 28, 2015
Solved

what is the equivalent mat-lab function of ones to create whole m x n matrix with value of 1 in mathcad?

  • November 28, 2015
  • 6 replies
  • 3263 views

Hi..

Please can i know, what is the equivalent matlab function ones which creates m x n matrix with value of 1.

I want to create matrix with all values are 1 (m x n) matrix.

please find below matlab function:

Capture.JPG

Regards,

Prashant Pandarkar

Best answer by ValeryOchkov

6 replies

24-Ruby IV
November 28, 2015

15-Moonstone
November 28, 2015

Yes. Thanks.

But I am not able to understand the code please can you explain it?

what is the value for ORIGIN ?

Thanks,

Prashant Pandarkar

24-Ruby IV
November 28, 2015

Origin is a number first row or column of matrix

0 or 1 usually

Prime

23-Emerald V
November 28, 2015

prashant pandarkar wrote:

Hi..

Please can i know, what is the equivalent matlab function ones which creates m x n matrix with value of 1.

I want to create matrix with all values are 1 (m x n) matrix.

please find below matlab function:

Capture.JPG

Here's another way of doing it - I've got these two functions in my standard Utilities library:

The second set of functions gives you ORIGIN independence.

Stuart

24-Ruby IV
November 28, 2015

I have only one Mathcad-sheet where ORIGIN is not 0 nor 1.

See please the Dice game statistic

16-2-Dice.png

24-Ruby IV
November 28, 2015

I think it is a solution