×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Creating a table or matrix of several range variables results in Mathcad Prime 4.0

Creating a table or matrix of several range variables results in Mathcad Prime 4.0

Creating a table or matrix of several range variables results in Mathcad Prime 4.0

(OP)
I have calculated some results over a range of angles, and I can only display the results in separate columns.
How can I put them into a single table or matrix for presentation, not further calculation?

Edit: I am using Mathcad Prime 4.0


RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

Not sure what the current configuration of Mathcad does, but typical version requires removing the units and then using something like the "augment" or "stack" functions. You could try augment without getting rid of the units and see what happens.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

(OP)
I tried, but removing units causes all sorts of inconsistencies.

I tried dividing omega_i by 1 * deg to rid the deg unit, but no luck.

"The value must be an integer." is another error it throws.

Am I missing something?

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

Can you post the worksheet? Your experience does not sound like what should happen.

Oh, never mind, what is the i subscript? Again, having the worksheet instead of pictures would make some of the question go away and get closer to the actual problem

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

Only thing I can think of is that you are including the index, because it messes things up when you do that. Your index is also funky, since you wind up with 91 elements in each vector, but only 19 are non-zero

https://files.engineering.com/getfile.aspx?folder=...

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

(OP)
The index is based upon integers from 0 to 90 of units of deg. That's the 91 elements, however, I created it with a step of 5 as you have in the worksheet I shared. i = 1,5..90.

Why would it put zeros in?

Weird. Thanks for your efforts.

Rob

Edit: If I make i := 1,..90, I lose the zeros but now I have a 91 row table! Why would augment ignore the step and put a zero in the rows in between? TTYL

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

No, YOU put the zeros in, since Mathcad simply assumes that you fill in all 91 rows of each vector, as defined by the last index being 90

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

(OP)
I get 0-indexing. I program in APL and J. What I meant was I setup the i variable to start at 0, end at 90, in 5 increments or steps for a total of 19 indices.

SMath Studio gets it right as you can see in the screencap below.



Thanks for your help anyway! It is much appreciated.

Rob

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

Mathcad does not work that way; index increments are always 1, only. Your definition results in allocating 91 indexed entries; which are initialized to zero, hence the results.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

(OP)
Oh, but Mathcad does seem to work that way per the worksheet I shared and the simple example below. It can step in 5 or any other integer, not just 1. Simply define n := 0,5..90, and you get 19 elements, not 91. The issue of the zeros seems to come up when you have units in Mathcad. Units still work in SMath Studio without putting in the zeros or extra rows, so Mathcad does put in the zeros compared to it; I'm not. Thanks!

RE: Creating a table or matrix of several range variables results in Mathcad Prime 4.0

(OP)
I really appreciate your help! Thank you!

I'm going to drop this for now, and use SMath Studio or Mathematica.

Rob

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close