Attempting to combine row vectors

조회 수: 3 (최근 30일)
Zachary Bergman
Zachary Bergman 2019년 9월 27일
댓글: Zachary Bergman 2019년 9월 27일
So I am modeling the compliance of the left ventricle in heart. In doing so, there is a compliance, Chd (from 0 to 99 milliseconds and again from 350 milliseconds to 800ms), for diastolic phases and another, Chs, for systolic phases (from 100ms to 350 ms). I need to combine these two to model Ch, the compliance of the ventricle overall and then create the corresponding plot. (I know Ch=Chd+Chs is incorrect. Here is my code so far:
%parameters Chd=.01 %(L/mmHg) limit of diastolic compl
Chs=.001 %(L/mmHg)limit of systolic compl
Ts=30 %(ms)
Td=60 %(ms)
t=(0:1:800) %(milliseconds)
ChS=(Chd-Chs)*exp(1).^(-t/Ts)+Chs %Ventricular compliance during systole
ChD=(Chs-Chd)*exp(1).^(-t/Td)+Chd %Ventricular compliance during diastole
Ch=ChS+ChD %overall compliance
plot(t,Ch)
xlabel('time (ms)')
ylabel('Ch (L/mmHg)')
  댓글 수: 2
Image Analyst
Image Analyst 2019년 9월 27일
Rescued from spam quarantine.
Guillaume
Guillaume 2019년 9월 27일
What does combine mean mathematically? You tell us it's not addition. is it concatenation, something else?

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

채택된 답변

Jon
Jon 2019년 9월 27일
편집: Jon 2019년 9월 27일
If my understanding of what you are trying to do is correct you can do this as:
Ch = [ChD(1:99) ChS(100:350) ChD(351:800)]
So you are building a single signal Ch whose first segment is given by the Distolic, a middle segment by the Systolic, and then a final segment given by the Dystolic.
Is this what you are trying to accomplish? If not please explain further.
  댓글 수: 1
Zachary Bergman
Zachary Bergman 2019년 9월 27일
Yes, thank you! Apologies for my lack of clarity.

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by