graph is not showing
25 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
there are the values i calculate but i cannot see graph in plotting. anybody help me? here my code:
clc
clear all
close all hidden
P=1; % assuming and constant
Ex=20*10^4;
Ey=2*10^4;
Ea=0.1*10^4;
k=0.1;
t=0.01;
b=0.05;
h=0.1;
ExGxy=17;
Ah=((Ex/Ey)^0.25)*(k*(Ey/Ea)+0.5)/3;
a=(0.01:0.005:0.08);
fprintf('%10s %10s\n','Energy Release Rate','Crack Length');
for a=0.01:0.005:0.08
G= (P^2/(Ex*b^2*h))*((12*(a/h+1/Ah)^2)+1.2*ExGxy);
fprintf('%10.4f %10.4f \n', G, a)
end
figure, plot(a, G,'k-'), axis equal;
xlabel('Crack Length (a)'), ylabel('Energy Release Rate (G)');
0 Commenti
Risposte (1)
Torsten
il 21 Dic 2024 alle 19:03
Modificato: Torsten
il 21 Dic 2024 alle 19:25
P=1; % assuming and constant
Ex=20*10^4;
Ey=2*10^4;
Ea=0.1*10^4;
k=0.1;
t=0.01;
b=0.05;
h=0.1;
ExGxy=17;
Ah=((Ex/Ey)^0.25)*(k*(Ey/Ea)+0.5)/3;
a=(0.01:0.005:0.08);
fprintf('%10s %10s\n','Energy Release Rate','Crack Length');
for i=1:numel(a)
G(i)= (P^2/(Ex*b^2*h))*((12*(a(i)/h+1/Ah)^2)+1.2*ExGxy);
fprintf('%10.4f %10.4f \n', G(i), a(i))
end
figure, plot(a, G,'k-'), axis equal;
xlabel('Crack Length (a)'), ylabel('Energy Release Rate (G)');
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!