Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Dave.ca  
#1 Posted : 04 October 2017 05:38:03(UTC)
Dave.ca

Rank: Newbie

Groups: Registered
Joined: 04/10/2017(UTC)
Posts: 4
Canada
Location: Kelowna

I've tried many ways from examples I have found on the internet, but I just can't get the graph to plot. What am I doing wrong?

Any help would be greatly appreciated.

Graph.png

[b]Foot note:
The problems are solved. The main problem was units; units must be correct through out. When using constants be sure the value also has units attached (1.5 m, not 1.5, for example). The second was that for the extended graph plugin there seems to be a limit on the levels of conditional functions you can call. I ended writing the function as a one line which worked:

Quote:
m(x)={((x≥0m)&(x<L1))*M1(x)+((x≥L1)&(x<L1+L2))*M2(x)+((x≥L1+L2)&(x≤Ltot))*M3(x)}/1000

Edited by user 08 October 2017 20:32:27(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline csb531  
#2 Posted : 04 October 2017 12:08:56(UTC)
csb531


Rank: Member

Groups: Registered
Joined: 10/10/2012(UTC)
Posts: 24
Netherlands

Hello Dave,

maybe a simple scaling problem? Your results are of magnitude 8 N, your plot is in [kN].
Try scaling the plot area with [Ctrl]+scroll wheel or [Shift]+ scroll wheel.
Hope this helps...

Regards, csb.
Offline Jean Giraud  
#3 Posted : 04 October 2017 13:51:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Dave.ca Go to Quoted Post
I just can't get the graph to plot


Dave, please attach the work sheet.
Offline Dave.ca  
#4 Posted : 04 October 2017 17:19:15(UTC)
Dave.ca

Rank: Newbie

Groups: Registered
Joined: 04/10/2017(UTC)
Posts: 4
Canada
Location: Kelowna

Here Jean, thanks for looking

Dave MAST.sm (1,470kb) downloaded 22 time(s).
Offline Davide Carpi  
#5 Posted : 04 October 2017 18:07:09(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Input units are needed... in the standard 2D plot, just use p(x*'m) / V(x*'m)

2017-10-04 17_03_13-SMath Studio - [MAST.sm_].png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#6 Posted : 04 October 2017 18:18:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
1. The X_Y plot does not take conditional
2. Quick plot does not take units [there is way to trick]
3. units removed from the two conditional ... plots !!!

Cheers... Jean

MAST.sm (1,473kb) downloaded 30 time(s).
Offline Dave.ca  
#7 Posted : 04 October 2017 19:31:53(UTC)
Dave.ca

Rank: Newbie

Groups: Registered
Joined: 04/10/2017(UTC)
Posts: 4
Canada
Location: Kelowna

Yahoo! Thanks Jean! I understand the problem!

Dave
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.