Rank: Newbie
Groups: Registered
Joined: 04/10/2017(UTC) Posts: 4 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. [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
|
|
|
|
Rank: Member Groups: Registered
Joined: 10/10/2012(UTC) Posts: 24
|
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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Dave.ca I just can't get the graph to plot Dave, please attach the work sheet.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 04/10/2017(UTC) Posts: 4 Location: Kelowna
|
Here Jean, thanks for looking Dave MAST.sm (1,470kb) downloaded 22 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Input units are needed... in the standard 2D plot, just use p(x*'m) / V(x*'m) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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).
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 04/10/2017(UTC) Posts: 4 Location: Kelowna
|
Yahoo! Thanks Jean! I understand the problem!
Dave
|
|
|
|
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.