Finding value for each degree from matlab figure
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
helin özdemir
el 4 de Mayo de 2024
After running the values I obtained from a NACA profile in Matlab along with the txt file, I perform the smoothing process. I am trying to find equivalents at every level for the figure in the appendix. How can I do it
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1686426/image.png)
This is the command I run for the figure I obtained:
[Alfa2D, cl2D, ~, ~]= textread('Naca LD1408 9R.txt','%f %f %f %f');
N2D = size(Alfa2D,1);
%--------------------------------------------------------------------------
% Fit a Smoothing Spline Model
%--------------------------------------------------------------------------
f = fit(Alfa2D, cl2D,'smoothingspline','SmoothingParam',0.3)
figure(1); plot(f,Alfa2D,cl2D)
2 comentarios
Walter Roberson
el 5 de Mayo de 2024
I am trying to find equivalents at every level for the figure in the appendix.
Could you explain that more?
Respuesta aceptada
Voss
el 5 de Mayo de 2024
Editada: Voss
el 5 de Mayo de 2024
data = readmatrix('Naca LD1408 9R.txt');
f = fit(data(:,1), data(:,2),'smoothingspline','SmoothingParam',0.3);
xi = -15:1:18; % or -15:0.5:18 or whatever
yi = f(xi);
figure
plot(f,data(:,1),data(:,2))
hold on
plot(xi,yi,'o','MarkerFaceColor','g','DisplayName','1° intervals')
set(get(gca(),'Legend'),'Location','best');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!