Professional Documents
Culture Documents
Exercise Set 1
Exercise Set 1
1
Matrices, Script, functions and graphs
1) Consider the given matrix with size 4 x 6
4 3 1 2 5 4
0 1 1 3 6 2
4 4 5 1 1 1
2 1 3 1 5 6
a) f(x)=x2+4x-3
b) h(x)=exp(f(x)/100)-2;
c) g(x1,x2)=x12+x22+32-4x2+24x1x2
Write corresponding Matlab functions both “inline” and through a file namefunction.m
Import data in Matlab and write a script to code the following requests: