Question: ) Create a script file that will read the x and y vectors (having different lenghts) from an excel file and will use them
) Create a script file that will read the x and y vectors (having different lenghts) from an excel file and will use them as inputs for the function explained as follows: MATLAB Function file should calculate z as shown below. The inputs of the function should be x and y vectors, and the output should be z. The function should have a mechanism to check the lengths of the x and y vectors and if they are not equal, it should use only the first N values of both of the vectors (where N is the minimum of the lengths of the x and y vectors), and show a message about this modification done on inputs. The program should also write the results to another sheet in the same excel file. z = sin(x) cos(y 2)
Step by Step Solution
3.47 Rating (163 Votes )
There are 3 Steps involved in it
MATLAB Read x and y vectors from Excel file excelFileName yourexcelfilexlsx x x... View full answer
Get step-by-step solutions from verified subject matter experts
