您在這裡

Solution to Exercise 8.1

20 一月, 2016 - 09:21

The m-file content:

% This script plots a graph of Graph of y=sin(x)/x
clc                      % Clear screen
x = pi/100:pi/100:10*pi; % Create a row vector
y = sin(x)./x;           % Calculate y as function of x
plot(x,y),title('Graph of y=sin(x)/x'),xlabel('x'),ylabel('y'),grid

The html output:

media/image6.png
Figure 8.5 The published html file.