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
- :
- Range Variables Question

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

04-01-2012
06:19 PM

04-01-2012
06:19 PM

I'm having an issue with the following and any help would be much appreciated

Lets say I have a key frequency of interest

All of the following MATHCAD code has been generated

Input Parameter:

KeyFreq=1

Output(KeyFreq)=| 0

| 10 if KeyFreq > 5

Output(KeyFreq)= 0

Now my queston is the following:

I want to find out what the Output(KeyFreq) becomes from a KeyFreq range of 1-100

I tried using the "KeyFreq=1...100", however this won't output the data.

Thanks for your assistance!

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

05-06-2012
04:59 PM

05-06-2012
04:59 PM

dan nguyen wrote:

I'm having an issue with the following and any help would be much appreciated

Lets say I have a key frequency of interest

All of the following MATHCAD code has been generated

Input Parameter:

KeyFreq=1

Output(KeyFreq)=| 0

| 10 if KeyFreq > 5

Output(KeyFreq)= 0

Now my queston is the following:

I want to find out what the Output(KeyFreq) becomes from a KeyFreq range of 1-100

I tried using the "KeyFreq=1...100", however this won't output the data.

Thanks for your assistance!

You've probably found the solution by now, but just in case it's of any help ... see attached.

Stuart

4 REPLIES 4

Highlighted
##

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

04-02-2012
01:08 PM

04-02-2012
01:08 PM

Re: Range Variables Question

Please upload a worksheet.

Mike

Highlighted

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

05-06-2012
04:59 PM

05-06-2012
04:59 PM

dan nguyen wrote:

I'm having an issue with the following and any help would be much appreciated

Lets say I have a key frequency of interest

All of the following MATHCAD code has been generated

Input Parameter:

KeyFreq=1

Output(KeyFreq)=| 0

| 10 if KeyFreq > 5

Output(KeyFreq)= 0

Now my queston is the following:

I want to find out what the Output(KeyFreq) becomes from a KeyFreq range of 1-100

I tried using the "KeyFreq=1...100", however this won't output the data.

Thanks for your assistance!

You've probably found the solution by now, but just in case it's of any help ... see attached.

Stuart

Highlighted
##

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

05-07-2012
12:13 PM

05-07-2012
12:13 PM

Re: Range Variables Question

Thanks Stuart_Bruff,

Unfortunately I had to do the solve the problem by punching in each key frequency and seeing the output. But I do appreciate your assistance in the matter! For future analysis, is it possible to export the vector data into a table? For instance in the your attached mathcad sheet, the output was (0 0 0 0 10 10 10 10 10) for a range from 0 to 9.

Would it be possible to display the information as key frequency in a column of a table and the output in the other column as seen below

KeyFreq | Output

0 | 0

1 | 0

.

.

.

9 | 10

I've been tinkering with the table function in MATHcad however it's not working out as well (due to my own self admitted ignorance).

Thanks again for your assistance!

best,

Dan

Highlighted
##

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

05-07-2012
03:20 PM

05-07-2012
03:20 PM

Re: Range Variables Question

dan nguyen wrote:

Unfortunately I had to do the solve the problem by punching in each key frequency and seeing the output. But I do appreciate your assistance in the matter! For future analysis, is it possible to export the vector data into a table? For instance in the your attached mathcad sheet, the output was (0 0 0 0 10 10 10 10 10) for a range from 0 to 9.

Would it be possible to display the information as key frequency in a column of a table and the output in the other column as seen below

KeyFreq | Output

0 | 0

1 | 0

.

.

.

9 | 10

I've been tinkering with the table function in MATHcad however it's not working out as well (due to my own self admitted ignorance).

The simplest way is to use augment and stack to join the data together as in the attached example. I've shown 2 choices of array result, matrix and table. Double click on an array result to bring up the 'Result Format' dialog and choose whichever option you prefer from the 'Display Options' tab. If you choose table format, the right-clicking on the table and choosing 'Properties' will allow you to choose the font and whether or not to display the row/col labels.

Thanks again for your assistance!

best,

Dan

No worrries,

Stuart