필터 지우기
필터 지우기

How to find value of large area based different values of small area?

조회 수: 2 (최근 30일)
Jigar
Jigar 2022년 12월 9일
댓글: Jigar 2022년 12월 9일
I am trying to find overall value of wind for large zone where sample points have small zonesand all them have individual values. Also, values depend on size of zones as well. Here, large zone falls partially on other 3 zone while fully on zone 1.
Pressure in zone 1 = P1, similarly pressure in other zones = P2, P3, P4
Yellow color area in zone 1 = A1, similarly yellow color area in other zones = A2, A3, A4; total yellow area (A)= A1+A2+A3+A4
Equation should be this way for the Pressure of large zone ==> P = (P1A1 + P2A2 + P3A3 + P4A4) / A

답변 (1개)

Zahrah Walid
Zahrah Walid 2022년 12월 9일
I'm not completely sure that I got your question but as far as I understand you want to implement this algorithm using MATLAB; if yes, this is a really easy task with various ways, for example if P1=100, P2=200, P3=300, A1=5, A2=10, and A3=15:
data=[100 5; 200 10; 300 15]; %constrcut n*2 matrix with pressures in first column and areas in second column
A=sum(data(:,2)); %total area
P=sum(data(:,1).*data(:,2))/A; %P = (P1A1 + P2A2 + P3A3 + P4A4) / A
  댓글 수: 1
Jigar
Jigar 2022년 12월 9일
Hello Zahrah,
No. Overall area of yellow zone is known, and how much portion of that zone falls in other zones is not known. So I need to create code for that by which I can calculate pressure based on given equation.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by