Info

This question is closed. Reopen it to edit or answer.

How I can plot a graphic with three parts

2 views (last 30 days)
César Arturo Niño Carmona
Closed: MATLAB Answer Bot on 20 Aug 2021
clc;clear
CC = input ('Ingrese la COMPLIANCIA (cm3/cmH2O)DEL PULMON C = ');
C= CC/981;
subplot (2,2,1)
syms t
% I need to fplot a graphic that 0<t<3, and 0<t<=1 is '1', then 1<t<=2 is t;
% and 2<t<=3 is '2'. After that this graphic named Q, fplot and insert in
% this line... Please help me
hold on
grid on
fplot(Q,[0 3])
title ("FLUJO/CAUDAL Q, VARIANTE RESPECTO AL TIEMPO")
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ro=1; G=981; A1=100; A2=150; A3=125;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
syms x
Vol =(Q*t)
subplot (2,2,3)
hold on
grid on
fplot(Vol,[0 3])
title ("VOLUMEN, VARIANTE RESPECTO AL TIEMPO")
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RO=1; G=981;
h=Vol/(C*RO*G)
subplot (2,2,4)
hold on
grid on
fplot(h,[0 3])
title ("PRESION, VARIANTE RESPECTO AL TIEMPO")

Answers (0)

Community Treasure Hunt

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

Start Hunting!