MATLAB Command Window 1/4 July 26, 2018 11:32:03 PM: % Nama: Moch. Syahrul Siddiq M % NIM: 2111161001 % Tugas 7
MATLAB Command Window 1/4 July 26, 2018 11:32:03 PM: % Nama: Moch. Syahrul Siddiq M % NIM: 2111161001 % Tugas 7
MATLAB Command Window 1/4 July 26, 2018 11:32:03 PM: % Nama: Moch. Syahrul Siddiq M % NIM: 2111161001 % Tugas 7
r=
x =
Columns 1 through 8
Columns 9 through 11
Columns 1 through 8
Columns 9 through 11
nilai2 =
Columns 1 through 8
Columns 9 through 11
nilai3 =
Columns 1 through 8
Columns 9 through 11
> % no 3
> x = linespace(-1.5,1.5,11);
Undefined function or variable 'linespace'.
> % no 4
> x1 = fzero('f',-10), x2 = fzero('f',1), x3 = fzero('f',10)
x1 =
x2 =
x3 =
x1 =
MATLAB Command Window 3/4
July 26, 2018 11:32:03 PM
1
x2 =
x3 =
> x = linspace(-10,10);
> plot(x,f(x));
> grid on
> title('Fungsi f(x)')
> x1 = fzero('f',-10), x2 = fzero('f',1), x3 = fzero('f',10)
x1 =
x2 =
x3 =
minimum_fungsi =
-0.4142
maximum_fungsi =
2.4142
> % no 5
> x = linspace (-2,2);
> y = linspace (-2,2);
> for i = 1:50
for j = 1:50
MATLAB Command Window 4/4
July 26, 2018 11:32:03 PM
end
Not enough input arguments.
Warning: The figure is too large for the page and will be cut off. Resize the figure, adjust the output size by
setting the figure's PaperPosition property, use the 'print' command with either the '-bestfit' or '-fillpage'
options, or use the 'Best fit' or 'Fill page' options on the 'Print Preview' window.
Warning: The figure is too large for the page and will be cut off. Resize the figure, adjust the output size by
setting the figure's PaperPosition property, use the 'print' command with either the '-bestfit' or '-fillpage'
options, or use the 'Best fit' or 'Fill page' options on the 'Print Preview' window.