Turning a double into a scalar
38 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniel Beeson
el 19 de Abr. de 2024
Comentada: Daniel Beeson
el 19 de Abr. de 2024
Hey all, trying to use flowprandtlmeyer to find mach numbers for a range of different prandtl-meyer angles ('nu' as an input), and getting some issues. The error I am getting for this is that: Inputs must be scalars in Prandtl-Meyer angle input mode. Any ideas on how to do this problem??
close all; clear all; clc
gamma = 1.4;
mach = 2.5;
theta_a = 0:.1:30;
p1 = .2;
t1 = 300;
t_0 = 675;
p_0= 3.417;
vm2 = (theta_a + (39.124));
[mach2, nu2, mu2] = flowprandtlmeyer(gamma, vm2, 'nu');
0 comentarios
Respuesta aceptada
VBBV
el 19 de Abr. de 2024
Editada: VBBV
el 19 de Abr. de 2024
close all; clear all; clc
gamma = 1.4;
mach = 2.5;
theta_a = 0:.1:30;
p1 = .2;
t1 = 300;
t_0 = 675;
p_0= 3.417;
vm2 = (theta_a + (39.124));
for k = 1:size(theta_a,2)
[mach2(k), nu2(k), mu2(k)] = flowprandtlmeyer(gamma, vm2(k), 'nu');
end
mach2
nu2
mu2
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Software Development Tools 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!