import file ?

import file ? - Mensajes

#1 Publicado: 17/6/2021 12:16:00
mnorena

mnorena

0 me gusta en 13 mensajes.

Grupo: User

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

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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 Publicado: 17/6/2021 15:39:09
mnorena

mnorena

0 me gusta en 13 mensajes.

Grupo: 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 Publicado: 17/6/2021 15:49:26
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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 Publicado: 17/6/2021 16:18:48
mnorena

mnorena

0 me gusta en 13 mensajes.

Grupo: User

this it is the file, thanks for your help


ppp.txt (168,34 KiB) descargado 1177 vez(es).
#6 Publicado: 17/6/2021 16:27:20
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Wrote

this it is the file, thanks for your help


ppp.txt (168,34 KiB) descargado 1177 vez(es).


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.

Mostrar spoiler


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

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

You can access differently formatted sections by reading them separately.

import.png
import.sm (4,81 KiB) descargado 1224 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Nuevos mensajes
  • Sin mensajes nuevos