p6_7.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 11 行
M
11 行
% P6_7.M Plot the solution to the equation% y''+y=0 with y(0)=2 and y(pi/2)=1.%x=[0:.01:pi/2];y=2*cos(x) + (1-(pi/2))*sin(x) + x;clfplot(x,y)title('Solution to y''+y=0 with y(0)=2, y(1.57)=1')grid;xlabel('x')ylabel('y(x)')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?