Calculating the circulation given specific parameters
Mostrar comentarios más antiguos
I am trying to calculate the circulation using the following code. Although the code works, the calculated data doesn't make sense as I get a linear plot. I would also like to create a image plot, if possible. Any help would be greatful!
close all;
clear all;
clc;
h = 200; % height of stack in meters
z = (0:10); % average wind in the vertical
mr = 2.5; % mean mixing ratio
sigmaz = z*mr; %vertical mixing
dt = (24:72)*60*60; %change in time
for i = 1:length(z)
for j = 1:length(dt)
c = exp(-(z+h).^2.)/((2*sigmaz.^2))./dt;
end
end
plot((1:numel(dt)),(1:numel(c)))
4 comentarios
What's the definition of "circulation" in this context ?
And your plot command
plot((1:numel(dt)),(1:numel(c)))
means that you plot (1:49) against (1:49) without using the values calculated for c. This doesn't make sense.
madhan ravi
el 14 de Nov. de 2023
are you sure of the c formula? exp(- larger number) is closer to zero
Jonathon Klepatzki
el 15 de Nov. de 2023
Jonathon Klepatzki
el 15 de Nov. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

