Calculating the circulation given specific parameters
Show older comments
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 Comments
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
on 14 Nov 2023
are you sure of the c formula? exp(- larger number) is closer to zero
Jonathon Klepatzki
on 15 Nov 2023
Jonathon Klepatzki
on 15 Nov 2023
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
