import file ?

import file ? - Сообщения

#1 Опубликовано: 17.06.2021 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 Опубликовано: 17.06.2021 13:49:55
overlord

overlord

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

Группа: 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 Опубликовано: 17.06.2021 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 Опубликовано: 17.06.2021 15:49:26
overlord

overlord

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

Группа: 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 Опубликовано: 17.06.2021 16:18:48
mnorena

mnorena

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

Группа: User

this it is the file, thanks for your help


ppp.txt (168 КиБ) скачан 53 раз(а).
#6 Опубликовано: 17.06.2021 16:27:20
overlord

overlord

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

Группа: Moderator

Wrote

this it is the file, thanks for your help


ppp.txt (168 КиБ) скачан 53 раз(а).


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 Опубликовано: 17.06.2021 17:12:18
Martin Kraska

Martin Kraska

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

Группа: Moderator

You can access differently formatted sections by reading them separately.

import.png
import.sm (4 КиБ) скачан 46 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений