Initial conditions can be given in Integration Block. Open the integrator block parameter window by double clicking the block and there you will get the option to enter initial condition. I think I have shown this step in my "spring mass damping" video. You can refer to that video by using below link : th-cam.com/video/D0co7PoclKk/w-d-xo.html
Double click the integrator block to open the block parameter dialog. Enter the value under the "Initial Conditions" option (1st option) in the dialog. Cheers Programmer World programmerworld.co -
The maximum height ‘h’ achieved by an object thrown with a speed ‘v’ at an angle ‘theta’ is given by h=v(sqr)*sin(theta)(sqr)/2g . Create a table showing the maximum height for the following values of v and theta. v=10 20, in steps of 2 and in steps of 10. Use suitable interpolation function to find ‘h’ corresponds to v=13 & 15 and theta = 55 to 65
4A. Obtain voltage across capacitor using SIMULINK Model for the RC System with following specifications. Create subsystem and steps to set up parameters in Masking. Initial condition is Vc(0)=2A R=10ohm C=0.1F V=1V applied at t=0sec. Equation representing the system is RC (Vc)'+Vc=V, Get the values to the workspace and save as .mat file. Draw the model and response. Use ODE solver to compute and plot the solution of the equation given in Q4A. Write a function poly2rect for the conversion of polar form into rectangular form by inputting magnitude and angle.
You can refer to me video at: th-cam.com/video/3igvjJr20Ws/w-d-xo.html In this video I have explained the steps to design the Mask for a subsystem block in Simulink. I have also shown the use of derivative block in Simulink in this video.
Thank you for the video Sir. I have a problem and I believe you can help me: I have done the exact same model starting from a blank page but the output shows repetitives waves instead of stabilizing waves. I have tried this in two different computers, obtainig the same wrong output. Do you have any clue on what is wrong? Thank you.
I will suggest to check the parameters of the 2nd order differential equation. They are the ones which determine the output waveform of your equation. If parameters value are same and solvers are also same (ODE45) then the output should be similar. Cheers Programmer World programmerworld.co/ -
@@ProgrammerWorld Thank you for your fast answer. The parameters and the solver are the same as in your program... I used r2020a and r2020b, could the difference come from using other versions? (I am thinking of changes in the integrator or something similar). Need to add that the only explanation I found about why the same program gives different outputs is use a 64 bit version in a 32 bit OS, and I am not committing this error.
Solving a quadratic equation is a very basic mathematics. So, I don't think with the change of Matlab versions or OS architecture should impact the results. So, I don't think that those are the reasons for the anomaly in the results. Cheers Programmer World programmerworld.co -
For 3rd order, we may have to add one more integrator block to accommodate the differentiation in the equation. You can also post your complete equation in the below page, which may help us to design the model: programmerworld.co/simulink/how-to-design-differential-equation-2nd-order-in-simulink-matlab/ Cheers Programmer World programmerworld.co -
Solution to 3rd order equation is shown in the below page. It may help. Please refer. th-cam.com/video/rr6jo997xAM/w-d-xo.html programmerworld.co/matlab/how-to-design-a-3rd-order-differential-equation-in-both-matlab-script-and-simulink-model/ Cheers Programmer World programmerworld.co -
Change the gain block (preceding the sine block) parameter to 50/(2*pi). This will make the sin block as sin(50t). Cheers Programmer World programmerworld.co/ -
I think in the integrator block by default it will take the initial conditions for every state as 0 (if not specifically assigned). For reference, the complete details shown in this tutorial is also shared in the below link: programmerworld.co/simulink/how-to-design-differential-equation-2nd-order-in-simulink-matlab/ Cheers Programmer World programmerworld.co -
May God reward you for all your efforts and all the valuable information that you provide us smoothly .
This video is a godsend to my peers and I in Dynamical Systems with 1st and 2nd order ODE's. THANK YOU kind sir! :D
Thank you so much for this video, actually I don't have any basic knowledge about Matlab ,this made me simulink work
Thanks so much, I'm ready for my matlab exams this afternoon
Thank You Sir,,,, Very Helpful video,,,Explained in a easy way !!
Very well explained helps dearly with my masters degree!
thank you so much !!!! finally I understood that
u explained well sir. very informative video. thank you sir
Thank you sir. You really helped me
great video . ishq (x) ho gaya. (in jest)
Thanks
very helpful video....you explained nicely
How do you take care of the initial conditions ?
Initial conditions can be given in Integration Block. Open the integrator block parameter window by double clicking the block and there you will get the option to enter initial condition.
I think I have shown this step in my "spring mass damping" video. You can refer to that video by using below link :
th-cam.com/video/D0co7PoclKk/w-d-xo.html
Very helpful thankyou
Awsome sir
Thanks a lot
How to set initial condition for the integrator block?
Double click the integrator block to open the block parameter dialog. Enter the value under the "Initial Conditions" option (1st option) in the dialog.
Cheers
Programmer World
programmerworld.co
-
The maximum height ‘h’ achieved by an object thrown with a speed ‘v’ at an angle ‘theta’ is given by h=v(sqr)*sin(theta)(sqr)/2g . Create a table showing the maximum height for the following values of v and theta. v=10 20, in steps of 2 and in steps of 10. Use suitable interpolation function to find ‘h’ corresponds to v=13 & 15 and theta = 55 to 65
You can watch my this video: th-cam.com/video/LPc-OsU8gb4/w-d-xo.html
I have shown the steps to interpolate using the interp1 function of matlab.
4A. Obtain voltage across capacitor using SIMULINK Model for the RC System with following specifications. Create subsystem and steps to set up parameters in Masking. Initial condition is Vc(0)=2A R=10ohm C=0.1F V=1V applied at t=0sec. Equation representing the system is
RC (Vc)'+Vc=V, Get the values to the workspace and save as .mat file. Draw the model and response.
Use ODE solver to compute and plot the solution of the equation given in Q4A.
Write a function poly2rect for the conversion of polar form into rectangular form by inputting magnitude and angle.
You can refer to me video at: th-cam.com/video/3igvjJr20Ws/w-d-xo.html
In this video I have explained the steps to design the Mask for a subsystem block in Simulink. I have also shown the use of derivative block in Simulink in this video.
thank you!
Thank you for the video Sir. I have a problem and I believe you can help me:
I have done the exact same model starting from a blank page but the output shows repetitives waves instead of stabilizing waves. I have tried this in two different computers, obtainig the same wrong output. Do you have any clue on what is wrong?
Thank you.
I will suggest to check the parameters of the 2nd order differential equation. They are the ones which determine the output waveform of your equation.
If parameters value are same and solvers are also same (ODE45) then the output should be similar.
Cheers
Programmer World
programmerworld.co/
-
@@ProgrammerWorld Thank you for your fast answer.
The parameters and the solver are the same as in your program... I used r2020a and r2020b, could the difference come from using other versions? (I am thinking of changes in the integrator or something similar).
Need to add that the only explanation I found about why the same program gives different outputs is use a 64 bit version in a 32 bit OS, and I am not committing this error.
Solving a quadratic equation is a very basic mathematics. So, I don't think with the change of Matlab versions or OS architecture should impact the results. So, I don't think that those are the reasons for the anomaly in the results.
Cheers
Programmer World
programmerworld.co
-
how is this a 2018 video?! that is such an outdated version of windows
what about the initial conditions
Initial conditions of the equation can be set in the respective integrator blocks.
Cheers
Programmer World
programmerworld.co/
-
how we design third order differe ntial equation
For 3rd order, we may have to add one more integrator block to accommodate the differentiation in the equation. You can also post your complete equation in the below page, which may help us to design the model:
programmerworld.co/simulink/how-to-design-differential-equation-2nd-order-in-simulink-matlab/
Cheers
Programmer World
programmerworld.co
-
(d ^ 2 * x)/(d * t ^ 2) - k(1 - x) * (dx)/(dt) + x = d(t) can you for this sir
Solution to 3rd order equation is shown in the below page. It may help. Please refer.
th-cam.com/video/rr6jo997xAM/w-d-xo.html
programmerworld.co/matlab/how-to-design-a-3rd-order-differential-equation-in-both-matlab-script-and-simulink-model/
Cheers
Programmer World
programmerworld.co
-
how can we give sin 50t
Change the gain block (preceding the sine block) parameter to 50/(2*pi).
This will make the sin block as sin(50t).
Cheers
Programmer World
programmerworld.co/
-
YOU FORGOT INITIAL CONDITIONS
I think in the integrator block by default it will take the initial conditions for every state as 0 (if not specifically assigned).
For reference, the complete details shown in this tutorial is also shared in the below link:
programmerworld.co/simulink/how-to-design-differential-equation-2nd-order-in-simulink-matlab/
Cheers
Programmer World
programmerworld.co
-
hhhhhhelpful
Thanks
Thanks