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 Jonny Be Good  
#1 Posted : 17 October 2021 00:56:17(UTC)
Jonny Be Good

Rank: Newbie

Groups: Registered
Joined: 17/10/2021(UTC)
Posts: 3

I am trying to plot electrical resistance using Electrical Engineering Library and X-Y-Plots Plugins but it does not seem to work:

2021-10-16 23_55_14-Window.png

Can anyone help me plot this?

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

Offline overlord  
#2 Posted : 17 October 2021 01:41:28(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,124
Turkey

Was thanked: 506 time(s) in 337 post(s)
Delete the ohm unit in Rp.
Usually you shouldn't use units while plotting.
For information, this includes most numeric solver functions too.

Regards

2021-10-17_01-41.png
Offline overlord  
#3 Posted : 17 October 2021 01:46:20(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,124
Turkey

Was thanked: 506 time(s) in 337 post(s)
Or if you will really need units;
Try to eliminate or add them in the input data.
It is to avoid them being used in plot.
Or to avoid conflict between unit-ed numbers and not unit-ed.

When you use Rx in your function, it can't be EEL_par with 1 ohm.
Plot try to use Rx as an number not a unit added number.
You either add unit to Rx or do opposite.
Opposite is eliminating all units of other variables.

Regards

2021-10-17_01-46.png

Edited by user 17 October 2021 22:16:25(UTC)  | Reason: Not specified

Offline Jonny Be Good  
#4 Posted : 17 October 2021 19:03:39(UTC)
Jonny Be Good

Rank: Newbie

Groups: Registered
Joined: 17/10/2021(UTC)
Posts: 3

Thanks, this makes total sense.

Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?
Offline overlord  
#5 Posted : 17 October 2021 20:28:23(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,124
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Jonny Be Good Go to Quoted Post
Thanks, this makes total sense.

Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?

Maybe I chose a wrong word to describe it, shall edit.
It will plot not only integers, numbers actually.
But plot expect them to be dimensionless.
Not just X-Y plot, built-in 2D plot also.

Regards

2021-10-17_20-26.png

Edited by user 17 October 2021 22:26:33(UTC)  | Reason: Not specified

Offline Jonny Be Good  
#6 Posted : 17 October 2021 22:08:04(UTC)
Jonny Be Good

Rank: Newbie

Groups: Registered
Joined: 17/10/2021(UTC)
Posts: 3

Originally Posted by: overlord Go to Quoted Post
Or if you will really need units;
Try to eliminate or add them in the input data.
It is to avoid them being used in plot.
Or to avoid conflict between unit-ed numbers and not unit-ed.

When you use Rx in your function, it can't be EEL_par with 1 ohm.
Plot try to use Rx as an integer not a unit added number.
You either add unit to Rx or do opposite.
Opposite is eliminating all units of other variables.

Regards

2021-10-17_01-46.png


So how did you add the Ohm symbol under the plot? It won't let me add a unit there.

Offline overlord  
#7 Posted : 17 October 2021 22:23:47(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,124
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Jonny Be Good Go to Quoted Post
So how did you add the Ohm symbol under the plot? It won't let me add a unit there.

1 - Hit multiply after Rx;
2 - (Type W in place holder, place Ctrl+G) or (Click ohm from right pane);
3 - Placeholder shall appear, either double click or press tab to insert Ω as unit.
If you are not typing units after numbers, this is the way.

You can also type ' between step1 and step2.
Units can be typed or chosed with this way more quick.
This will directly open placeholder scroll menu.

Regards

Edited by user 17 October 2021 22:27:25(UTC)  | Reason: Not specified

Offline Jean Giraud  
#8 Posted : 18 October 2021 13:03:57(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jonny Be Good Go to Quoted Post
Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?

Altitude is plotted integers.

Solve INVERSE Recursive NASA.sm (14kb) downloaded 3 time(s).

PlotIntegers.PNG

Offline Jean Giraud  
#9 Posted : 18 October 2021 15:30:30(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... refreshed version ½ timing.

Solve INVERSE Recursive NASA.sm (17kb) downloaded 9 time(s).
Offline overlord  
#10 Posted : 18 October 2021 23:05:53(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,124
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Jonny Be Good Go to Quoted Post
Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?

I don't know if there is a stem equivalent for smath plots.
But you can create your own function for that purpose.

Regards

stem.sm (9kb) downloaded 10 time(s).

2021-10-18_23-04.png

Offline Jean Giraud  
#11 Posted : 19 October 2021 03:03:39(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... you can animate the stem system, have symbols too.
Here, integers are the X direction.
Eventually, easy for the Y direction as applicable.

2D Util Stem ANIM Laplace Diffusion.sm (22kb) downloaded 6 time(s).
Offline Razonar  
#12 Posted : 19 October 2021 06:42:00(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Jonny Be Good Go to Quoted Post
...
Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?


Hi. In addition to the overlord solution, this is another approach.

stem.sm (13kb) downloaded 21 time(s).

Imagen1.png

Best regards
Alvaro.

Edited by user 19 October 2021 06:49:16(UTC)  | Reason: Not specified

Offline Jean Giraud  
#13 Posted : 19 October 2021 16:20:17(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
You can highlight some particular point(s) with glyphe(s) of you choice.
You will have to dispose their position by hand.

2D Plot Setup Glyphes.sm (29kb) downloaded 9 time(s).
Offline overlord  
#14 Posted : 19 October 2021 17:19:27(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,124
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Razonar Go to Quoted Post
...In addition to the overlord solution...

Mine was not a solution to be honest.
Just a quick and ugly way to show it is possible.
This is a good solution though.

Regards
Users browsing this topic
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.