import file ?

import file ? - 消息

#1 已发布: 2021/6/17 12:16:00
mnorena

mnorena

0个赞,共13个帖子。

组: User

is it possible to import a file in txt to the smath and organize it by columns and rows???
#2 已发布: 2021/6/17 13:49:55
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

is it possible to import a file in txt to the smath and organize it by columns and rows???


If you mean a comma separated file (csv), yes it is possible with importData().

2021-06-17_19-42.png
#3 已发布: 2021/6/17 15:39:09
mnorena

mnorena

0个赞,共13个帖子。

组: User

I allow your instrruccions, i dont know if i am doing ok, the name of the file is "ppp" and it shows me in the smath studio thats it is not reconized.

smath.PNG
#4 已发布: 2021/6/17 15:49:26
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

If you could provide your file, it would be easier to check and input correct delimiters.
If you don't want to, just put a couple of lines. It can help to determine the function values.

Regards
#5 已发布: 2021/6/17 16:18:48
mnorena

mnorena

0个赞,共13个帖子。

组: User

this it is the file, thanks for your help


ppp.txt (168.34 KiB)已下载 1206 次。
#6 已发布: 2021/6/17 16:27:20
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

this it is the file, thanks for your help


ppp.txt (168.34 KiB)已下载 1206 次。


You should write "ppp.txt" where you indicate your file.
You also just have to delete the first line from your data file.
It creates conflict between your function and data.
Data it provides don't match pattern of function.
So in result data can't be read.
Check below.

显示剧透


PS: martin is also right about getting partial data down below.
#7 已发布: 2021/6/17 17:12:18
Martin Kraska

Martin Kraska

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

组: Moderator

You can access differently formatted sections by reading them separately.

import.png
import.sm (4.81 KiB)已下载 1248 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • 有新帖
  • 无新帖