Hi everyone, im getting this error:
Error using sym/min (line 98)
Input arguments must be convertible to floating-point numbers.
Error in advencedconcrete32a (line 16)
tension= min(Es*(d-c)/c*epscm*As/1000,fy*As/1000);
i guess the problem is that i use "c" before i solved it, how else can i find "c" from the equation compression= tension?
please help.
thank you very much.
b=300; %mm
d=400; %mmfc=40; %Mpa
Ecm=22*(fc/10)^0.3*10^3; %MpaEs=200000; %MpaAs=2400; %mm^2
fy=400; %Mpaepsc1=min(2.8/1000,0.7*fc^0.31/1000);epscu=3.5/1000;k=1.05*Ecm*epsc1/fc;epscm=1.5/1000;syms cfunC=@(epsc) (k*epsc/epsc1-(epsc/epsc1).^2)./(1+(k-2)*epsc/epsc1);compression= b*fc*c./epscm*integral(funC,0,epscm)/1000;tension= min(Es*(d-c)/c*epscm*As/1000,fy*As/1000);solc= compression==tension;c=solve(solc,c)
Best Answer