Plot - Units, different axis names than x, y, ...

Plot - Units, different axis names than x, y, ... - I cannot make any sensible and useful engineering plot working. - Сообщения

#1 Опубликовано: 16.03.2026 10:36:26
Olda Dajbych

Olda Dajbych

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

Группа: User

Hello,
I am a satisfied SMath user and have recommended it to my engineering students. We have immediately stumbled over a huge problem. We are unable to show any meaningful graphs of real problems. With units, correct names or descriptions on axes, etc. I have tried everything, but once I don't see any errors, the graph still shows nothing. Then, there is an error, something like "Result is over max. positive number." I am just trying to display a sine wave voltage. Please, can somebody help me? I was googling extensively, but when there is a promising answer, it is very vague, just showing that it is possible without any help.

This is just my trials, but I have not been able to get any curves in the several graphs.



Edit: The image does not show. You can find it here: http://public.uli.cz/smath-plot.png

Thanks a lot
Olda
Отредактировано 16.03.2026 10:37:57
#2 Опубликовано: 16.03.2026 12:13:23
overlord

overlord

587 сообщений из 1 360 понравились пользователям.

Группа: Moderator

If you are working with vectors, you need to use vectorize().
If you are trying to plot, only Y axis values not enough.
You have to tell what are X values also.

Regards

2026-03-16_15-11.png
#3 Опубликовано: 16.03.2026 13:39:19
overlord

overlord

587 сообщений из 1 360 понравились пользователям.

Группа: Moderator

You can animate it too.

sinewave.sm (6,69 КиБ) скачан 5 раз(а).

sinewave.gif
Отредактировано 16.03.2026 13:42:30
  • Новые сообщения
  • Нет новых сообщений