MATLAB: How to Plot y=sin(2*pi​*m*x)+sin(​2*pi*n*x) , where m and n are positive integers and x is a variable

equationMATLABplot

so this is the code I wrote:
syms x y real;
syms m n integer;
m>0;
n>0;
y=sin(2*pi*m*x)+sin(2*pi*n*x);
Now I do not know how to plot this function y. I tried using plot , eplot , fplot. Nothing works. I am new to Matlab so please bare with me if the question is too vague or else.

Best Answer

m = 0:1:10 ;
n = 0:1:10 ;
[M,N] = meshgrid(m,n) ;
x = pi/4 ;
Y=sin(2*pi*M*x)+sin(2*pi*N*x);
surf(M,N,Y)
If you want to vary x and fix m,n:
m = 2 ;
n = 3 ;
x = linspace(0,2*pi) ;
Y=sin(2*pi*m*x)+sin(2*pi*n*x);
plot(x,Y)