Finding x value given y value
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all. I am using the following code to print a plot. How do i then fin a corresponding x value given y (m) = 80?
function qn1 A = 0.4; P = 101.3*10^3; T = 288.2; D = 1.225; Y = 1.4; R = 287.05; m=size(10);
%Start part a code Mi = 0:0.1:1; m = A.*Mi.*P.*((1+(0.4/2).*(Mi.^2)).^(2.4./-0.8)).*sqrt(1.4./(R.*T)); h=plot(Mi,m);
Cheers.
0 Commenti
Risposte (1)
Josh
il 31 Mar 2011
You must be doing some kind of low-speed aerodynamics... those numbers remind me of my undergrad years.
I believe you should look into polyfit and polyval. Polyfit will give you coefficients of a polynomial best-fit for a set of data points, then polyval will interpolate the data between the data points using those coefficients.
0 Commenti
Vedere anche
Categorie
Scopri di più su Graph and Network Algorithms 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!