Question: 4.2) MATLAB Exercise 1. Open MATLAB, and load the data file My Workspace from the previous section into MATLAB. (Tip: you can use the load
4.2) MATLAB Exercise 1. Open MATLAB, and load the data file "My Workspace" from the previous section into MATLAB. (Tip: you can use the "load" button in the Workspace or the load command.) 2. Can you find how many elements in n are larger than 0.5 ? 3. What is the index of the smallest element in in the vector n? (Tip: check out the min function.) 4. Try calculating the value of x from the following expression: x =Q1000 i=1 ui Q1000 j=1 uj The correct answer is obviously 1. Can you reach it? (Tip: try using prod function, and separately exp, log, sum functions.) 5. Compute meanU as the average of the vector u. (Tip: use mean function.) 6. Find the location of the elements in u that are larger that 0.9 using the command >> 1 = find(u>0.9). 7. Set all of the elements in u with larger than 0.9 to zero. How much does the mean of u shrink
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
