Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline alanhidy  
#1 Posted : 14 August 2009 05:14:40(UTC)
alanhidy

Rank: Newbie

Groups: Registered
Joined: 14/08/2009(UTC)
Posts: 1
Location: Canada

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
Offline Andrey Ivashov  
#2 Posted : 15 August 2009 05:28:08(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,373
Man
Russian Federation

Was thanked: 1606 time(s) in 538 post(s)
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.
Offline Greg Locock  
#3 Posted : 30 August 2009 13:56:39(UTC)
Greg Locock


Rank: Advanced Member

Groups: Registered
Joined: 30/08/2009(UTC)
Posts: 52
Location: Australia

Hi Andrey, wfile has a quirk or two. If you have a matrix d then the command wfile(d,'dtxt'Wink 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
Offline omorr  
#4 Posted : 30 August 2009 18:06:55(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,723
Man
Serbia

Was thanked: 305 time(s) in 261 post(s)
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!"
Offline Andrey Ivashov  
#5 Posted : 30 August 2009 18:24:41(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,373
Man
Russian Federation

Was thanked: 1606 time(s) in 538 post(s)
omorr 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).

omorr 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 Wink
Offline omorr  
#6 Posted : 30 August 2009 18:46:18(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,723
Man
Serbia

Was thanked: 305 time(s) in 261 post(s)
smath wrote:
I think not improved, but created. This would be different stuff Wink


You are right Good

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Users browsing this topic
Similar Topics
Trouble with importing data from a file (Questions)
by maweilian 21/06/2012 01:28:38(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.