Turn on suggestions

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

Showing results for

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

Showing results for

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

Nov 10, 2020
03:53 PM

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

Nov 10, 2020
03:53 PM

Programing Matlab to Mathcad Function Find

Hi, I´m translating some matlab codes to mathcad and I have had problems with the function Find.

Matab:

Vs30= Value

Vlin= Vector 23x1

idx = find(Vs30 < V_lin);

In Mathcad it says that idx is undefined.

It should return a vector 23x1

Please help me, Thank u !

Solved! Go to Solution.

Labels:

ACCEPTED SOLUTION

Accepted Solutions

Nov 10, 2020
10:56 PM

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

4 REPLIES 4

Nov 10, 2020
04:26 PM

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

Nov 10, 2020
04:26 PM

The command "Find" in Mathcad is the end of a specific construction, a solve block. It's not clear what you're trying to do. If you want a 23 element vector, all V30 value, I'd do it this way:

Nov 10, 2020
04:45 PM

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

Nov 10, 2020
04:45 PM

I need this function

`find(`

returns a vector containing the linear indices of each nonzero element in array `X`

)`X but in Mathcad`

Nov 10, 2020
10:56 PM

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

Nov 10, 2020
10:56 PM

That would be match

Nov 11, 2020
05:27 AM

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

Nov 11, 2020
05:27 AM

Just to add a small point to Fred's reply: note that indexing in Mathcad starts at 0 by default, though this can be changed using ORIGIN = 1 to match MATLAB's starting index.

Alan