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
![](https://secure.gravatar.com/avatar/ff2fa398feccd15d86cf99547949a1c5?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
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.