Example File For Returning Matlab
Example File For Returning Matlab
%% Task1
% Here, in the beginning, you can write nice comments and explanations
% with Latex-commands.
%
% In this task we calculate and plot function
%
% $$f_n(x) = \sum_{k=1}^n cos(kx). $$
%
% Function $f_n(x)$ is defined as Matlab-function f inside script file.
%
% After this, in this block comments are "normal" comments and
% Latex-commands won't work.
clear all
close all
n = 3
x =linspace(0,2*pi,100);