Exploring Mathcad Programming (to do with units)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Exploring Mathcad Programming (to do with units)
I need to get around the part of following programming where I need the variable to assign units (seconds in this example). It is not going through.
I request someone help me: Thanks a lot
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You may consider using this to create your array:
Result:
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The element of xx with index 2 never gets a value, so when i=3, an error occurs when trying to access that element.
Success!
Luc
- Tags:
- answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You cannot attach units to a variable that you use to index (point at) elements of an array.
If you want the array elements to have units, attach the unit to the elements, or attach the unit to the array at once in the return statement.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You may consider using this to create your array:
Result:
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks. It is a help to improve my skills. I also got round s follows.
![](/skins/images/695EE5AD3E567050FEDD72575855ED93/ptc_skin/images/icon_anonymous_message.png)