Calculating the circulation given specific parameters
이전 댓글 표시
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
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
2023년 11월 14일
are you sure of the c formula? exp(- larger number) is closer to zero
Jonathon Klepatzki
2023년 11월 15일
Jonathon Klepatzki
2023년 11월 15일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

