1 Pages (8 items)
Data range issues - Can't get it to work correctly - Messages
#1 Posted: 5/27/2019 8:56:17 PM
I'm having issues with using variables, I have a bunch of equations that have a single variable (end goal is to plot this) and when I use variable functions/matrices they make the outputs wrong somehow.
I have no issues when setting x to be a single number, but when I set x to a range of numbers the outputs go wrong.

https://imgur.com/a/B4Y8Sod

https://imgur.com/a/Qk3IxY8
Am I just doing it wrong?
I have no issues when setting x to be a single number, but when I set x to a range of numbers the outputs go wrong.
https://imgur.com/a/B4Y8Sod
https://imgur.com/a/Qk3IxY8
Am I just doing it wrong?
#2 Posted: 5/27/2019 9:49:02 PM
WroteI'm having issues with using variables, I have a bunch of equations that have a single variable (end goal is to plot this) and when I use variable functions/matrices they make the outputs wrong somehow.
I have no issues when setting x to be a single number, but when I set x to a range of numbers the outputs go wrong.
Please: attach the Smath work sheet to see what you may be missing.
#3 Posted: 5/27/2019 10:37:14 PM
Smath Data Ranges.sm (694 KiB) downloaded 45 time(s).
Here is the smath file, the important parts are at the bottom.
Here is the smath file, the important parts are at the bottom.
#5 Posted: 5/28/2019 9:33:46 AM
WroteHere is the smath file, the important parts are at the bottom.
...added at the end of your document.
Smath Data Ranges.sm (700 KiB) downloaded 34 time(s).
#6 Posted: 5/28/2019 11:26:56 PM
#7 Posted: 5/29/2019 5:41:53 AM
Obviously it's not a trick.
That way you ask to perform the evaluation element by element contained in the vector.
In the wrong way you used, perform the evaluation in a matrix sense (following the rules on matrix operations) because x1 is a matrix (vector).
sergio
That way you ask to perform the evaluation element by element contained in the vector.
In the wrong way you used, perform the evaluation in a matrix sense (following the rules on matrix operations) because x1 is a matrix (vector).
sergio
#8 Posted: 5/29/2019 9:52:57 AM
1 Pages (8 items)
-
New Posts
-
No New Posts