MATLAB: Plot a graph in intagrl2

double integral applicationplot a graph

syms x y real
fun = x
y1 = x
y2 = cos (x)
b= solve (y1==y2);
Volumeofsolid = int(int(fun,y,y1,y2),x,0,b)
x = linspace (0,b,25)
% Please teach me how to assign the value of x to y1
y = linspace (y1,y2,25)
plot(x,y)

Best Answer

  • I am going to guess:
    plot(x,subs([y1;y2]).')