Matlab programming reports and assignments.
Working with functions in MATLAB; Appendix /task snaps: Task2: Function defining: function [x,y] = fun1(f,t) %f for frequency % t for time x = cos(2.*3.14.*f.*t); y = 1+(t.^2)/(2.*f); end Function calling: a = 2;b = 3;c = 4; task2(a,b,c); t = x*z; t t = 576 x = 12 z = 8 y = -8 Task3: function a = task3(f,t,u,g) %g is amplitude! %f is frequency! %u is angle! %t is time! a = g*cos((2*3.14*f*t)+u); end f = 10; t = 0:0.01:2; u = 0; g = 5; task3(f,t,u,g); a = g*cos((2*3.14*f*t)+u); plot(t,a); ylabel('frequency'); xlabel('time'); title('function-time graph'); Task 02: function[X,Y] = fun2(f,t) X = cos(2*3.14*f*t); Y = (1+(t^2))/2*f; end >> f = 4;t = 3; >> fun2(f,t) ans = 0.9993 >> X X = 0.9993 >> Y Y = 2.1250
About Me
I am studying bachelors of electrical engineering from AIR UNIVERSITY ISLAMABAD...In freelancing !actually i am here to earn my expences...I can create icons,designs,posters and broshers etc ....I can also write effectively for any content IA....Also i am responsible for my duties and i will complete your work on time IA....I will do hard work on it as much as possible...
$ 6 USD/hr
NEW FREELANCER!