I am trying to run the example given on the Getting started page
(http://help.scilab.org/docs/5.4.0/en_US/api_scilab_getting_started.html)
But I got the error below. Any help please ?
=
Issue 1 :
data=read(engine.in,-1,1)
data =
0.08
0.08
0.001671
0.14835
0.
4000.
1.7
3.11
0.
1.
4.
5.
0.
Saket Choudhary
Undergraduate Student
IIT Bombay
India
On 14 March 2013 09:46, Munian, Devaraj devaraj.mun...@rntbci.com wrote:
Dear
Hello,
this small script solves your problem :
fd=mopen('engine.in','r');
s=mgetl(fd);
mclose(fd);
data1=[];
for i=1:size(s,1)
w=strsplit(s(i),'/\s+/');
for j=1:size(w,1)
data1(i,j)=w(j);
end
end
[r,c]=find(data=='bore');
Sorry for the small typing errors
("data" instead of "data1") :
fd=mopen('engine.in','r');
s=mgetl(fd);
mclose(fd);
data1=[];
for i=1:size(s,1)
w=strsplit(s(i),'/\s+/');
for j=1:size(w,1)
data1(i,j)=w(j);
end
end
[r,c]=find(data1=='bore');