Question: matlab Task 2 - Functions - (aka m.function) (12) The given function calculates a complex value I (t,w, vlength) wlength.cos(w t) + 1 vlength.sin(w !)
Task 2 - Functions - (aka m.function) (12) The given function calculates a complex value I (t,w, vlength) wlength.cos(w t) + 1 vlength.sin(w !) 1 *) (*) implement this function with the name TaskComplexfunc. Make sure this function can be called within the command line. All input parameters must be verified to be of type double b) Make the function optionally taking viength. If this parameter is not supplied it should be defaulting to (2) c) Test the function by calling Toska ComplexFunc with (4) w.2*pl: t 0.1,100 evenly spaced values once supplying the third parameter vlength = 2 and without third parameter. Store the results in two variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
