- #1
sarrfriend
- 6
- 0
Hi,
I have been trying to integrate an equation and then plot the result using MATLAB but haven't figured out how to do it. Say, I have an equation of the form dy = (1/x)dx. I want to integrate the above equation and then plot y as a function of x. So, to integrate I do this:
syms y x
LHS = int(1,y);
RHS = int(1/x,x);
So, now LHS and RHS contain the corresponding results of the integrals. How do I plot y as a function of x?
Thanks in advance.
Sarrvesh
I have been trying to integrate an equation and then plot the result using MATLAB but haven't figured out how to do it. Say, I have an equation of the form dy = (1/x)dx. I want to integrate the above equation and then plot y as a function of x. So, to integrate I do this:
syms y x
LHS = int(1,y);
RHS = int(1/x,x);
So, now LHS and RHS contain the corresponding results of the integrals. How do I plot y as a function of x?
Thanks in advance.
Sarrvesh