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
- :
- Value must be scalar or a matrix

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

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

11-13-2020
06:43 AM

11-13-2020
06:43 AM

Value must be scalar or a matrix

Im relatively new to mathcad and I'm trying to plot the stress in a curved beam as a function of the distnace r from the center of rotation.

I get this message:

Value must be a scalar or a matrix. I thought i made x a range variable.

Labels:

2 REPLIES 2

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

11-13-2020
07:51 AM

11-13-2020
07:51 AM

Re: Value must be scalar or a matrix

Rule 1: You should attach your worksheet, not only a picture.

You define sigma.tot as a function of x, but technically x does not appear in the function definition, only sigma.nomal and sigma.bending. These two are defined as variables (NOT functions), where the value of sigma.bending depends on a variable called x. But that x is undefined (prior to the definition of sigma.bending). This is how Prime sees your sheet. It cannot and will not vtry to guess what you mean, you have to be explicit in your definitions.

To remedy: make sigma.bending a function of x.

Success!

Luc

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

11-13-2020
10:19 AM

11-13-2020
10:19 AM

Re: Value must be scalar or a matrix

I'm not sure your engineering is right, but we can correct your Mathcad. Prime 4.0 attached