Hello,
I have an issue getting some Matlab code running in Octave (3.6.4) and have managed to get part way into the problems, but it is still not functioning as expected, i.e. the output is not coming up for one.
A lot of code has - defval('T',35e3) for example, so I just changed lines like that to T=35e3, however I am not sure this is the intention?
Other times I have seen code written like here:
% Te=[40 30 20 10 5 0]; <---------------------------- user input of Te values as a vector
% [l,Zb,G2b]=mckenzie([0 2670 2670+670],[0 35],[1 0],Te(4)); % Top loading
% [l,Zb,G2b]=mckenzie([0 2670 2670+670],[0 35],[0 1],Te(4)); % Bottom loading
%
% See FORSYTH, MCKENZIE1, MCKENZIE2, LOADING
%
% Last modified by
fjsimons-at-alum.mit.edu, October 21st, 2003
defval('R',[1030 2600 2900 3300])
defval('T',[ 0 15 35])
defval('F',[ 0.6 0.4 0])
defval('Te',17) <---------------------- A value of Te is given here, but above a range of values is given!
defval('E',1.4e11);
v=0.25;
g=9.81;
Again, I can change the defav to R=[......], and it will plot sometimes, bu only one value (in this case Te=17 and not the range [40 30 20 10 5 0].