import file ?

import file ? - Poruke

#1 Objavljeno: 17. 6. 2021. 12:16:00
mnorena

mnorena

0 svidjanja u 13 postova.

Grupa: User

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

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 17. 6. 2021. 15:39:09
mnorena

mnorena

0 svidjanja u 13 postova.

Grupa: 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 Objavljeno: 17. 6. 2021. 15:49:26
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 17. 6. 2021. 16:18:48
mnorena

mnorena

0 svidjanja u 13 postova.

Grupa: User

this it is the file, thanks for your help


ppp.txt (168,34 KiB) preuzeto 1226 put(ova).
#6 Objavljeno: 17. 6. 2021. 16:27:20
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

this it is the file, thanks for your help


ppp.txt (168,34 KiB) preuzeto 1226 put(ova).


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.

Prikaži spoiler


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

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

You can access differently formatted sections by reading them separately.

import.png
import.sm (4,81 KiB) preuzeto 1267 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Novi postovi
  • Nema novih postova