there is a wrong in plot command. I suggest that you have to check that and get better.
I wrote this code:
k=1.7;
a=1.5;
t1=1400;
t2=1150;
for l=0.15:0.15:0.90;
Q=-ka((t2-t1)/l);
disp(Q);
end;
ans:
4250
2125
1416.7
1062.5
850.00
708.33
and I wrote :
plot(Q,l);
but ıt doesnt work to plot command.
1
vote
Yusuf Kepir
shared this idea
The code is not correct for plotting. When you call plot, there is a scalar inside of Q. You need a vector inside Q. Try this code instead.
octave:1> k=1.7;
octave:2> a=1.5;
octave:3> t1=1400;
octave:4> t2=1150;
octave:5> I=0.15:0.15:0.90;
octave:6> Q=-k*1*((t2-t1)./I);
octave:7> plot(Q,I);
-
Yusuf Kepir commented
Oh sorry for my wrong, thank you very much.It works now.