report the textread error in matlab plot

Issues and examples using this model (available in the Models Repository)

report the textread error in matlab plot

Postby johnyu on Fri Feb 21, 2014 7:26 am

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 :>
johnyu
 
Posts: 1
Joined: Thu Feb 20, 2014 9:31 am

Re: report the textread error in matlab plot

Postby panda.wang.1989 on Fri Jun 06, 2014 12:10 am

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.
panda.wang.1989
 
Posts: 2
Joined: Tue Jun 03, 2014 10:36 am


Return to SPHysics User Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

cron