Can ables to view the plot in Matlab

for eps_c=0.000001:eps_cu
disp(eps_c);
x=eps_cu/eps_c;
fc=fcc*x*r/(r-1+x);
disp(fc);
end
% plotting graph for compressive stress-strain curve
figure
plot(eps_c,fc);
xabel('Compressive Strain')
ylabel('Compressive stress')

1 commentaire

madhan ravi
madhan ravi le 21 Fév 2019
upload the datas to run the code

Réponses (1)

madhan ravi
madhan ravi le 21 Fév 2019
I don't see why your using a loop (just vectorize using element wise operation) but try the below:
Note: You haven't provided the details of some variables eps_cu...
eps_c=0.000001:eps_cu;
x=eps_cu./eps_c;
fc=fcc.*x.*r./(r-1+x);
% plotting graph for compressive stress-strain curve
figure
plot(eps_c,fc);
xabel('Compressive Strain')
ylabel('Compressive stress')

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by