saving . . . saved
0
How to load file .dat with true variable name
Title
Question

I have data in dat extention with file name is 1.dat

here that are
1
3
2
4
1
2
2
3
1
2
I want to load in scilab. but when i tap
KL = loadmatfile('1.dat')
Warning: obsolete use of '=' instead of '=='.
1 = resume(mat)
!
in execstr instruction called by :
at line 126 of function loadmatfile called by :
%KL = loadmatfile('1.dat')
Warning: stack problem..., cleared.
but in variable browser any data like 1.dat but the variable name is %val, not KL.
How to fix that ?


Scilab 07-01-17, 10 p.m. dafri

Answers:

0

Hi Dafri, loadmatfile command is to load a Matlab V6 MAT-file which is different from the format of your document. In your case you can use "KL=fscanfMat('1.dat')" Regards, Georgey

10-01-17, 3:49 p.m. G_John


0

Hi George, Thans foy you answer. You solve my problem.

Where I can learn about scilab syntax ?
like how to make table, make matrix sparse, etc.
Regards, Dafri

23-01-17, 6:31 a.m. dafri


0

Please look at Scilab help files. Scilab help is available on your Scilab installation and online. Apart from that, you could also watch Scilab Spoken Tutorials- http://spoken-tutorial.org/tutorial-search/?search_foss=Scilab&search_language=English

09-02-17, 1:32 p.m. shamika


Log-in to answer to this question.