Skip to main content
6-Contributor
Jul 24, 2025 5:02 PM UTC
Solved

Plotting difficulty

Error message when plotting:

"These array elements must be scalars. They cannot be vectors or matrices."

How can this be fixed?

Using Mathcad Prime 10.0.1.0

LucMeekesAnswer
23-Emerald V
Jul 24, 2025 5:23 PM UTC

In your plot, change rho (before max_proof) to sigma and it should work.

The rho is not defined, you defined sigma....

 

Success!
Luc

4 replies

LucMeekes23-Emerald VAnswer
23-Emerald V
Jul 24, 2025 5:23 PM UTC

In your plot, change rho (before max_proof) to sigma and it should work.

The rho is not defined, you defined sigma....

 

Success!
Luc

Translate
thodij6-ContributorAuthor
6-Contributor
Jul 24, 2025 7:18 PM UTC

Thank you, Luc - It was such a silly mistake on my part. Thanks for noticing it, and appreciate your feedback.

Translate
Werner_E
25-Diamond I
Jul 24, 2025 7:51 PM UTC

Yo get a smoother plot if you define sigma as a function of "t" rather than a vector of a few values.

Werner_E_0-1753386685655.png

 

Translate
thodij6-ContributorAuthor
6-Contributor
Jul 24, 2025 7:55 PM UTC

Werner, thank you for enlightening me on this, and for caring about this plotting question. The PTC community is wonderful!

Translate