Hello, I am trying to create a loop to plot three curves from an input variable (Te):
clear() rho_m = 3330; rho_fill = 2400; g = 9.81; Pb = -1.5e12; v = 0.25; E = 1e11; x=linspace(0,200,41); for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 D = E*Te .^3/(12*(1-v^2)); lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; lamda_k = lamda*1000; flex = 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); end scf(1) clf(1) set(gca(),"auto_clear","off") set(gca(),"grid",[0,0]) plot(x,flex) The data plots correctly but only the first value (Te= 5000). Any poniters on what is missing would be great. Cheers Lester _______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users