Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- what is the equivalent mat-lab function of ones to...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
12:40 PM

11-28-2015
12:40 PM

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

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
12:50 PM

11-28-2015
12:50 PM

6 REPLIES 6

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
12:50 PM

11-28-2015
12:50 PM

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
01:01 PM

11-28-2015
01:01 PM

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
01:05 PM

11-28-2015
01:05 PM

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
01:17 PM

11-28-2015
01:17 PM

prashant pandarkar wrote:

Hi..

Please can i know, what is the equivalent matlab function

oneswhich 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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
01:31 PM

11-28-2015
01:31 PM

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-28-2015
02:48 PM

11-28-2015
02:48 PM

I think it is a solution