2D vector plot

2D vector plot - plot vector values on Y axis against vector index on X axis - Сообщения

#1 Опубликовано: 21.01.2014 12:44:16
Jay May

Jay May

3 сообщений из 10 понравились пользователям.

Группа: User

I try to plot a vector of results on a 2D graph to better visulize the results.
I would like to plot the vector values on the Y axis against the vector index on the X axis.
Here I post what I have done in MathCad and what I try in SMath.
issue 1: I need help in defining the plot value for SMath.
issue 2: I also need help in how to define two or more expressions within one for loop.

[albumimg]338[/albumimg]

[albumimg]339[/albumimg]

Thank you,
Jay
#2 Опубликовано: 21.01.2014 12:52:41
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

I would like to plot the vector values on the Y axis against the vector index on the X axis.

Just use x as index.
Use the line() function (programming palette) to set up blocks of expressions.

vec.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Опубликовано: 21.01.2014 17:39:11
Jay May

Jay May

3 сообщений из 10 понравились пользователям.

Группа: User

Thank you mkraska.

this is what I have now.
[albumimg]340[/albumimg]
By chance, is there any way to have the plot connect the data points with a line segment between points rather than having this stepped look? If so, it would easier to see the slope of the curve at the various divisions along the way.
#4 Опубликовано: 21.01.2014 18:16:57
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote


By chance, is there any way to have the plot connect the data points with a line segment between points rather than having this stepped look? If so, it would easier to see the slope of the curve at the various divisions along the way.


Yes, of course. See the attached handbook pages.

Section 2D plots XY Plot Plugin.sm (58 КиБ) скачан 56 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений