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

SOLVED
Highlighted
Aquamarine

## 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:

Regards,

Prashant Pandarkar

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

6 REPLIES 6
Highlighted

Highlighted

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

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

Highlighted

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

Origin is a number first row or column of matrix

0 or 1 usually

Prime

Highlighted

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

 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:

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

Highlighted

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

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

See please the Dice game statistic

Highlighted

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

I think it is a solution

Announcements