integral solver give a function as result
Ältere Kommentare anzeigen
Hi everybody, I am trying to solve my code by using the integral solver of Matlab, since I need to guarantee an energetic equivalence between two graphs. But the result isn't satisfying. The thing is that I cannot understand what's going wrong.
this is the code:
Sig_Height=0.0213*(vel_wind_R^2);
T_zc=0.519*vel_wind_R;
AA=4*pi^3*(Sig_Height/(T_zc^2))^2;
BB=16*pi^3*(1/(T_zc)^4);
syms freq_wave;
Spectre=AA/(freq_wave^5)*exp(-BB/(freq_wave^4)); %Bretschneider's spectre
integral=int(Spectre/(1-2*freq_wave*cos(teta_1rad)/g),0,inf);
Spectre_e=double(integral);
integral_2=int(freq_wave-(freq_wave^2*vel_nave/g)*cos(teta_1rad),0,Inf);
freq_e=double(integral_2);
I specify that:
vel_wind_R= 6.7; teta_1rad= 1.04; g=9.81.
Thanks in advance to whoever will give me support.
Akzeptierte Antwort
Weitere Antworten (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!