⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p6_7.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% 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;
clf
plot(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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -