Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

need to determine value of 'x ' from several different graphs corresponding to a particular value of 'y', then combine them in a matrix.....

1 visualizzazione (ultimi 30 giorni)
hi every one, basically i was stuck in a problem that the main aim of it was to determine value of 'x ' from several different graphs corresponding to a particular value of 'y', then combine them in a matrix. does any one know how to do it in a simpler way.... below is my source code . i have plotted strainrate on y axis & time on x axis,so i need to calculate time @ strainrate=.116 from all the 7 graphs...
clc
clear
sigmahoop =3.34*45/5; % P*r/t hoop stress formula
temprate=[1 5 10 15 20 25 50]'; %temperature rate
toper=310+273; %operating temp
time=[1:400]; %time taken
for i=1:7
for j= 1:400
fun= @(t)(exp(-29200/(toper+temprate(i,1)))); %declaring a function to integrate
in(i,j)=(1+2e10*integral(fun,0,j,'ArrayValued',true))^.42; %integrating function
strainrate(i,j)= 1.3e-5*sigmahoop^9*exp(-36600/(toper+time(1,j)*temprate(i,1)))+((5.7e7*sigmahoop^1.8*exp(-29200/(toper+time(1,j)*temprate(i,1))))/in(i,j))*100;
if strainrate(i,j)>=.35
strainrate(i,j)=NaN;
end
end
end
plot(time(1:400),strainrate(1:1,1:400))
figure
plot(time(1:80),strainrate(2:3,1:80))
figure
plot(time(1:26),strainrate(4:5,1:26))
figure
plot(time(1:16),strainrate(6:7,1:16))

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by