importing data

importing data - Сообщения

#1 Опубликовано: 13.08.2009 22:14:40
alanhidy

alanhidy

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

Группа: User

Hello, I'm a regular MathCad user and stumbled across your program today--it looks great! I am just wondering if there is a way to import data into SMath like there is in MathCad. Like some function that imports a .txt file into a data matrix (an export function to a .txt file would be good too). Also, are there any plans to add control buttons or sliders? These options would be of great use to me.

Cheers!
Alan
#2 Опубликовано: 14.08.2009 22:28:08
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Hello, Alan.

For now import data available only with rfile/wfile/dfile functions (see functions description into the Insert Function Dialog). There are some limitations:
- SMath Studio can work with the files, that located into the folder %InstallationDirectory%\user only;
- data should be well formated to be readable (you can write something using wfile(..) and check created file with Notepad).

Plans to make ability to add System Controls (like buttons, comboboxes, etc.) is in my mind, but I have mo estimations at this moment about when this would be implemented.

Thanks for using SMath Studio.
Best regards, Andrey Ivashov.
#3 Опубликовано: 30.08.2009 06:56:39
Greg Locock

Greg Locock

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

Группа: User

Hi Andrey, wfile has a quirk or two. If you have a matrix d then the command wfile(d,'dtxt') writes the letter d into a file called "'dtxt'", whereas I'd expect it to write the conents of d into a a file called "dtxt".

Cheers

Greg
#4 Опубликовано: 30.08.2009 11:06:55
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello Greg,

Here is an example of how I think it works at the moment:


I hope the data export,import will be improved in the next releases.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Опубликовано: 30.08.2009 11:24:41
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Wrote

Here is an example of how I think it works at the moment


You are right. The idea to create wfile/rfile/dfile functions was to create an ability to work with static memory - once you create a file (with wfile) with expression you need (not only matrices, it can be functions or anything else), you can use it anywhere in another calculations (with rfile).

Wrote

I hope the data export,import will be improved in the next releases


I think not improved, but created. This would be different stuff
#6 Опубликовано: 30.08.2009 11:46:18
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

I think not improved, but created. This would be different stuff



You are right

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений