Question: Use that function to plot f(x) vs x, where 0 x 10. Problem 2: Create a list of Fibonacci numbers (0, 1, 1, 2, 3,

Use that function to plot f(x) vs x, where 0 x 10. Problem 2: Create a list of Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13,...). Start by creating seed values 0 and 1 in two adjacent array components. Display only the first 20 even Fibonacci numbers. (IF statement and looping is needed here). For this one, create a user-defined function named yourLastName_fib.m where the input argument is the number 20 and the output is a list of the first n even Fibonacci numbers. Hint: MATLAB function "mod" will be useful in recognizing even/odd numbers. Problem 3: Create a user-defined function named yourLastName_sum.m that sums up all components of a general 2D matrix. Use a "nested" for loop: one loop for rows, one loop for columns. See section 6.5 for more info. Demonstrate with A = ones(3,4). You will also need the "size" function to determine how big the input matrix is. Compare your result to using MATLAB's "sum" function (you'll need it twice). Problem 4: Load the provided data in rainfall.txt. Column 1 is mo

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!