I want to plot a graph as shown below, For that non linear system, i have written a Matlab script but i can't really identify how do i plot such graph.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yash Runwal
el 23 de Abr. de 2019
Respondida: Naman Bhaia
el 2 de Mayo de 2019
%% WaterTank MATLAB Script
syms h(t)
Dh = diff(h);
A = 20; a = 2; b = 5; U = 0:0.1:1.0; V = 1;
watertank = 1*diff(h,t) - (1/A)*b.*V - (1/A)*a*sqrt(h) == 0;
soln = dsolve(watertank, h(0) == 0, Dh(0) == 0);
figure(1), clf
fplot(soln)
figure(2), clf
plot(U,Y)
![IMG_20190423_121652.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/215522/IMG_20190423_121652.jpeg)
Zulauf means Inlet (denoted in the script as 'U')
Fullstand means Height of the tank (denoted in the script as 'h')
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!