1 страниц (5 вхождений)
How to output data to a csv file - Syntax for output - Сообщения
#1 Опубликовано: 23.02.2019 19:30:21
I am trying to write data to a csv file. On the forum, I have seen examples of output_CSV and “outputData (subscript CSV)”. I cannot get either to work. My data is a two column matrix.
If this function works in SMath, any help on the correct syntax would be appreciated. Perhaps it requires a plugin. If so where can I get the plugin?
Also,where will the csv file be located?
Thanks much.
Reg
If this function works in SMath, any help on the correct syntax would be appreciated. Perhaps it requires a plugin. If so where can I get the plugin?
Also,where will the csv file be located?
Thanks much.
Reg
#2 Опубликовано: 23.02.2019 20:38:47
You can use the data exchange plugin. To install go to Tools->Plugins... -> Click (Local Storage) and select Online Gallery -> Look for "Data Exchange" -> Double Click to install.
A simple example of exporting to CSV is shown below. Note: you will need to save the .sm before exportData function will work.

csvExport.sm (2 КиБ) скачан 55 раз(а).
A simple example of exporting to CSV is shown below. Note: you will need to save the .sm before exportData function will work.
csvExport.sm (2 КиБ) скачан 55 раз(а).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Опубликовано: 23.02.2019 21:15:47
Thanks again for all your help.
It still does not seem to work for me. I installed the Data Exchange Plugin and used the following syntax.
Файл не найден.Файл не найден.
I keep my .sm files files in the following directory. C:\Users\Reg\Reg Documents\MATH_SMATH
The file was not located here.
It is also not located here: C:\Users\Reg\AppData\Local\Programs\SMath Studio
It still does not seem to work for me. I installed the Data Exchange Plugin and used the following syntax.
Файл не найден.Файл не найден.
I keep my .sm files files in the following directory. C:\Users\Reg\Reg Documents\MATH_SMATH
The file was not located here.
It is also not located here: C:\Users\Reg\AppData\Local\Programs\SMath Studio
#4 Опубликовано: 23.02.2019 21:39:04
Alyles,
Thanks again. I discovered my issue. The = is a symbolic evaluation.
Thanks,
Reg
Thanks again. I discovered my issue. The = is a symbolic evaluation.
Thanks,
Reg
#5 Опубликовано: 24.02.2019 10:02:43
WroteThe = is a symbolic evaluation.
Not quite so ... =1 is logical answer "yes saved"
1. select your matrix in Smsth
2. Copy
3. Paste in Excel LibreOffice
I tried but it pastes as line instead of column.
Never ever used Excel since 2000 !
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений