(Strain vs Stress Curve) to (Stress Vs Strain Curve) Switch My X-axis into Y-axis in my plot
I plotted a strain- stress curve graph however, in physical materials studies stress(y-axis)-strain(x-axis) curve is the convention in plotting. I have tried to change the graph axis but to just recive a blank plot. I have tried everything but to no avail. What am I doing wrong?
clc
clear all
close all
E1=4000; %4GPa written in 4000 MPa
E2=5000; %5GPa written in 5000 MPa
Mu= 1.2*10^5; %this measures creep
stress0.norm = 800; %this is initial stress value is in MPa
for i=1:stress0.norm
strain.normal(i)=i/E1; % This is storing the values before yielding
end
for i=stress0.norm:1500 %this is the finising stress in MPa (after yielding
strain.normal(i)=(i/E1)+((i-stress0.norm)/E2); % This is storing the values after yielding
end
% The graph with what I started off
figure (‘Name’, ‘Linear Hardening Model’, ‘NumberTitle’, ‘off’)
plot (strain.normal,’b’);
hold on
plot (800,.2, ‘rx’, ‘LineWidth’, 2);
% plot (strain.normal,’b’);
title (‘Linear Hardening Model E2 +/- 10%’);
xticks(0:100:1500);
xlabel(‘stress(in MPa)’);
ylabel(‘strain’);
grid on
legend(‘Normal’,’Yielding Location’,’Location’,’NorthEast’)
% What I wanted to achieve but get a blank graph
figure (‘Name’, ‘Linear Hardening Models Issue ‘, ‘NumberTitle’, ‘off’)
plot (strain.normal,length(strain.normal),’b’);
hold on
plot (.2,800,’rx’, ‘LineWidth’, 2);
title (‘Linear Hardening Model’);
axis ([0 0.6 0 1500])
yticks(0:100:1500);
xticks
xlabel(‘strain’);
ylabel(‘stress(in MPa)’);
grid on
legend(‘Normal’,’Yielding Location’,’Location’,’NorthEast’)I plotted a strain- stress curve graph however, in physical materials studies stress(y-axis)-strain(x-axis) curve is the convention in plotting. I have tried to change the graph axis but to just recive a blank plot. I have tried everything but to no avail. What am I doing wrong?
clc
clear all
close all
E1=4000; %4GPa written in 4000 MPa
E2=5000; %5GPa written in 5000 MPa
Mu= 1.2*10^5; %this measures creep
stress0.norm = 800; %this is initial stress value is in MPa
for i=1:stress0.norm
strain.normal(i)=i/E1; % This is storing the values before yielding
end
for i=stress0.norm:1500 %this is the finising stress in MPa (after yielding
strain.normal(i)=(i/E1)+((i-stress0.norm)/E2); % This is storing the values after yielding
end
% The graph with what I started off
figure (‘Name’, ‘Linear Hardening Model’, ‘NumberTitle’, ‘off’)
plot (strain.normal,’b’);
hold on
plot (800,.2, ‘rx’, ‘LineWidth’, 2);
% plot (strain.normal,’b’);
title (‘Linear Hardening Model E2 +/- 10%’);
xticks(0:100:1500);
xlabel(‘stress(in MPa)’);
ylabel(‘strain’);
grid on
legend(‘Normal’,’Yielding Location’,’Location’,’NorthEast’)
% What I wanted to achieve but get a blank graph
figure (‘Name’, ‘Linear Hardening Models Issue ‘, ‘NumberTitle’, ‘off’)
plot (strain.normal,length(strain.normal),’b’);
hold on
plot (.2,800,’rx’, ‘LineWidth’, 2);
title (‘Linear Hardening Model’);
axis ([0 0.6 0 1500])
yticks(0:100:1500);
xticks
xlabel(‘strain’);
ylabel(‘stress(in MPa)’);
grid on
legend(‘Normal’,’Yielding Location’,’Location’,’NorthEast’) I plotted a strain- stress curve graph however, in physical materials studies stress(y-axis)-strain(x-axis) curve is the convention in plotting. I have tried to change the graph axis but to just recive a blank plot. I have tried everything but to no avail. What am I doing wrong?
clc
clear all
close all
E1=4000; %4GPa written in 4000 MPa
E2=5000; %5GPa written in 5000 MPa
Mu= 1.2*10^5; %this measures creep
stress0.norm = 800; %this is initial stress value is in MPa
for i=1:stress0.norm
strain.normal(i)=i/E1; % This is storing the values before yielding
end
for i=stress0.norm:1500 %this is the finising stress in MPa (after yielding
strain.normal(i)=(i/E1)+((i-stress0.norm)/E2); % This is storing the values after yielding
end
% The graph with what I started off
figure (‘Name’, ‘Linear Hardening Model’, ‘NumberTitle’, ‘off’)
plot (strain.normal,’b’);
hold on
plot (800,.2, ‘rx’, ‘LineWidth’, 2);
% plot (strain.normal,’b’);
title (‘Linear Hardening Model E2 +/- 10%’);
xticks(0:100:1500);
xlabel(‘stress(in MPa)’);
ylabel(‘strain’);
grid on
legend(‘Normal’,’Yielding Location’,’Location’,’NorthEast’)
% What I wanted to achieve but get a blank graph
figure (‘Name’, ‘Linear Hardening Models Issue ‘, ‘NumberTitle’, ‘off’)
plot (strain.normal,length(strain.normal),’b’);
hold on
plot (.2,800,’rx’, ‘LineWidth’, 2);
title (‘Linear Hardening Model’);
axis ([0 0.6 0 1500])
yticks(0:100:1500);
xticks
xlabel(‘strain’);
ylabel(‘stress(in MPa)’);
grid on
legend(‘Normal’,’Yielding Location’,’Location’,’NorthEast’) mechanics, materials science, plotting, axis MATLAB Answers — New Questions