SMath Studio Forum
»
SMath Studio
»
Questions
»
X-Y Plot for electrical resistance
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: Can anyone help me plot this?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 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 Edited by user 17 October 2021 22:16:25(UTC)
| Reason: Not specified
|
|
|
|
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?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
Originally Posted by: Jonny Be Good 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 Edited by user 17 October 2021 22:26:33(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 17/10/2021(UTC) Posts: 3
|
Originally Posted by: overlord 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 So how did you add the Ohm symbol under the plot? It won't let me add a unit there.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
Originally Posted by: Jonny Be Good 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: Jonny Be Good 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).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
Originally Posted by: Jonny Be Good 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).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Jonny Be Good ... 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).Best regards Alvaro. Edited by user 19 October 2021 06:49:16(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,124 Was thanked: 506 time(s) in 337 post(s)
|
Originally Posted by: Razonar ...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
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
X-Y Plot for electrical resistance
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.