how to plot discrete function

how to plot discrete function - 消息

#1 已发布: 2022/11/8 14:37:51
Mo

Mo

0个赞,共34个帖子。

组: User

hi,
I am trying to create a sheet to design welds and want to plot the geometry of the weld lines.
the problem is if I assign a matrix with x,y coordinates the 2D plot will draw a continuous function connecting all points, and when I assign this to a discrete matrix of line coordinates it does not plot unless I assign each line individually which is bad as I want it plotted based on the geometry.
in the example below, I want the 2D plot to plot LW without manually adding each component of LW individually.

未找到文件。未找到文件。
Thanks
#2 已发布: 2022/11/8 15:18:08
Arie

Arie

94个赞,共285个帖子。

组: User

One possible options mat2sys.1() function.

Untitled.png
test_alyles.sm (35.91 KiB)已下载 1308 次。
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1位用户喜欢此帖子
sergio 2022/11/8 15:53:00
#3 已发布: 2022/11/8 15:48:06
Mo

Mo

0个赞,共34个帖子。

组: User

Many thanks, alyles!!
#4 已发布: 2022/11/8 16:20:38
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I want the 2D plot to plot LW without manually adding each component of LW individually.


... make it algo style. CG can be managed as well.

LW.PNG
#5 已发布: 2022/11/8 16:51:40
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I want the 2D plot to plot LW without manually adding each component of LW individually.


... it may be possible to make svg [Scale Vector Graphic].
Cheers ... Jean.

test_alyles & jean.sm (41.37 KiB)已下载 1288 次。
#6 已发布: 2022/11/8 20:36:11
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... this is NOT a graph. It is an image triplet.
1. You can size the thickness/magnitude of the CG
2. You size length/thickness/color of the side welds
3. re-dispose the final triplet.
Cheers ... Jean.

Weld.PNG
#7 已发布: 2022/11/8 22:08:39
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... here is the project as offered.

Utilities Discrete COMPANION_2 WELD.sm (20.2 KiB)已下载 1325 次。
#8 已发布: 2022/11/9 05:42:29
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

You might consider building geometry plots from the pre-defined objects in the XY-Plot-plugin.

xyplot_015.png

xyplot_016.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
4位用户喜欢此帖子
sergio 2022/11/9 07:36:00, NDTM Amarasekera 2022/11/9 09:42:00, Arie 2022/11/9 09:42:00, Alvaro 2022/11/9 18:32:00
#9 已发布: 2022/11/9 18:34:13
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

You might consider building geometry plots from the pre-defined objects in the XY-Plot-plugin. ...



And maybe you may be interested in this other Martin' post, if you want to draw steel profiles to be welded, and by the way calculate their mechanical parameters: https://en.smath.com/forum/yaf_postsm78221_Split-Areas-Polygons-convex-and-concave--by-lines.aspx#post78221

Best regards.
Alvaro.
  • 有新帖
  • 无新帖