Question: k math lab programin alfa Q 4.67% 46 16:09 PM docs.google.com/form 3 doc Problem 4* The aim of this exercise is to write a MATLAB
k
math lab programin
alfa Q 4.67% 46 16:09 PM docs.google.com/form 3 doc Problem 4* The aim of this exercise is to write a MATLAB code that test if the input en +ln(n) n is a multiple of 3, then the output value is otherwise it returns 0. The code is structured as below function [value] = test (n) 3" if ... value = else value = 0; end end 1. Line 2 should be completed as a. if n = 3*k; b. if mod(n.3) = 0; c. if mod(n.3) == 0; d. None of the above 2. Line 3 should be completed as a. value =(en+ln(n)/3^n; b. value = (exp(n) + In(n)/3^n; c. value = (exp(n) + log(n)/3^n; d. None of the above 3. Test your script with n=9. then value = a. 0 b. 0.4118 c. 0.5689 d. None of the above a d Part 1 O O O O Part 2 O O O O Part 3 O O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
