Create tab demlimited data file (notepad) using Smath

Create tab demlimited data file (notepad) using Smath - Messages

#1 Posted: 2/22/2020 10:23:14 AM
Jaivishnu

Jaivishnu

0 likes in 6 posts.

Group: User

Hi
I wanted to know if it is possible to create tab delimited data file (.txt) using Smath. Txt Data file should contain different columns of a computed matrix in Smath
#2 Posted: 2/22/2020 12:15:25 PM
sergio

sergio

115 likes in 329 posts.

Group: User

try "Data exchange" plugin

sergio
#3 Posted: 2/23/2020 11:55:44 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

More generally from long times ago, universal data exchange is *.dat
#4 Posted: 2/24/2020 9:02:38 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I wanted to know if it is possible to create tab delimited data file (.txt) using Smath. Txt Data file should contain different columns of a computed matrix in Smath


1. Copy the matrix data
2. Paste in NotePad

3. Select all in NotePad, copy
3. Paste back in Smath New:= paste

What is Tab Delimited data ?
#5 Posted: 2/25/2020 10:26:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

mat(1,2,3,2,4,6,3,6,9,3,3)

copy, paste in Smath assigned argument [mymatrix]
mymatrix:=

Under the hood, spooling to file is
mat(1,2,3,2,4,6,3,6,9,3,3)
#6 Posted: 2/25/2020 12:12:45 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

You can use ExportData.CSV() from the DataExchange plugin. It doesn't generate tab-delimited files. If really needed, you can replace the commas by tabs using some script or filter command.

exportData.CSV.sm (23 KiB) downloaded 37 time(s).
exportData1.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts