Page 1 of 1

report the textread error in matlab plot

PostPosted: Fri Feb 21, 2014 7:26 am
by johnyu
Hi All,

I am new for SPHysics, so I am still trying to play the cases file. I found there was an error of textread command in matlab file. The textread seems not support in my matlab version in 2010b. So i replace the textread command into textscan as follows:

%[time,DT1,DT2,DT]=textread('DT','%f %f %f %f','headerlines',1);
% Cannot use textread command anymore
% so i change to textscan command
% by John Yu 20 Feb 2014
fileID = fopen('DT');
[DT]=textscan(fileID,'%f %f %f %f','headerlines',1);
time=DT{1};
DT1=DT{2};
DT2=DT{3};
DT=DT{4};

I am not sure the program could run in other matlab version at all? Please anyone to help me to test it. Thx :>

Re: report the textread error in matlab plot

PostPosted: Fri Jun 06, 2014 12:10 am
by panda.wang.1989
Hi, I am a new SPHysics user as well, i want to do some research about landslide generated waves.
I try to use the source code to compile but i have meet a lot of problems and failed.
so i would like to discuss with you and ask you r help.
If possible, would you please send me a mail to panda.wang.1989@gmail.com, which makes convenient for the discussion.
Thank you.