This value must be a scalar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This value must be a scalar
I have used units but when writing the function to excel I am getting error. Please help
Solved! Go to Solution.
- Labels:
-
Mathcad Usage
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
Here is the file working.
The problem is B1 is defined in your sheet as a range variable.
Looks in PTC Prime exactly like a vector.
To change it to a vector just use the hack of putting an equal sign after it to show it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hi,
WRITEEXCEL can't do units. See excerpt from mathcad help.
I suggest to divide the matrix you'd like to export with "UnitsOf(variable)" before writing to Excel.
Regards
Raiko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The problem is not WRITEEXCEL as you correctly strip the units when you use it.
The problem is that B1 is a range, not a vector, and so it can't be used as the argument for function A,tR.
Find attached two ways to deal with that situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You're right. I didn't notice it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It doesn't matter anyway. If you look at all the questions this user already had posted it seems, that he isn't really interested in the answers - at least he seems to think that it isn't necessary to come back, close the threads and maybe comment the answers given.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
Here is the file working.
The problem is B1 is defined in your sheet as a range variable.
Looks in PTC Prime exactly like a vector.
To change it to a vector just use the hack of putting an equal sign after it to show it.
