cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

ppandarkar-2
15-Moonstone

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

6 REPLIES 6

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

Origin is a number first row or column of matrix

0 or 1 usually

Prime

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

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

See please the Dice game statistic

16-2-Dice.png

I think it is a solution

Top Tags