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


Log-in to answer to this question.