필터 지우기
필터 지우기

Apply time-history load in the App designer

조회 수: 1 (최근 30일)
ZC Song
ZC Song 2019년 4월 26일
편집: ZC Song 2019년 4월 26일
Hi guys,
I'm now struggling how to realize the time-history loading in the app designer.
My problem is simple that I have a time periods of rainfall as well as Intensity for each during. In the original main file I use "heaviside function" like this:
i_q = -(1/3600)*[0.0365 0.0697 0.0996 0.0493 0.0153]; %FOR STEP LOADING: vector of rainfall intensity steps [m/s]
T_q = 2*3600*[0.1 0.24 0.45 0.78 1]; %FOR STEP LOADING: vector of time intervals of rainfall intensities (2 hrs)
q = @(t) (i_q(1).*(heaviside(t)-heaviside(t-T_q(1)))+ i_q(2).*(heaviside(t-T_q(1))-heaviside(t-T_q(2))) + i_q(3).*(heaviside(t-T_q(2))-heaviside(t-T_q(3))) + i_q(4).*(heaviside(t-T_q(3))-heaviside(t-T_q(4)))...
+ i_q(5).*(heaviside(t-T_q(4))-heaviside(t-T_q(5))));
which means when t lies in the first time interal (0<=t<=2*3600*0.1), the intensity will be the first elenment of i_q and so on, the time-intensity plot likes below:
Now in the app desinger, I want to let the user define their own time-history rainfall intensity (the length of column can depend on themselves) and load from excel file.
Could you please help me to figure it out?
Thank you very much!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by