MATLAB中怎么绘制出cos(nπx/L)cos(mπy/L)-cos(mπx/L)cos(nπy/L)=0 其中,(m,n=1,2……)、L为定值. x.y为坐标轴。的图像
clc
clear all;
syms n m L x y
S = solve(cos(n*pi*x/L) * cos(m*pi*y/L) == cos(m*pi*x/L)*cos(n*pi*y/L), [x, y])
这个函数无解
可以参考一下,如有帮助,请采纳
比如 f(x)=x+10sin(5x)+7cos(4x)
%%%%%%%%%f(x)=x+10sin(5x)+7cos(4x)%%%%%%%%%%
clear all; %清除所有变量
close all; %清图
clc; %清屏
x=0:0.01:10;
y=x+10*sin(5*x)+7*cos(4*x);
plot(x,y)
xlabel('x')
ylabel('f(x)')
title('f(x)=x+10sin(5x)+7cos(4x)')