Question: Please do in Matlab and write some comments . This two problems are related together so write in two separate program .Thanks Problem 3: write

 Please do in Matlab and write some comments . This two
Please do in Matlab and write some comments . This two problems are related together so write in two separate program .Thanks

Problem 3: write a script that Opens the file 'rawNumbers.dar (given to you/must be placed in MATLAB's working directory) using fopen) function . Uses fscanto tunction to read the numbers stored in that lile into an array Checks to make sure the file was opened propenty . Uses a loop and i statements to separate the numbers into 4 groups ot 1- posEven posilive even numbers in the array 2- posodd: positive odd numbers in the array 3- negEven: negative even numbers in the array 4 negodd: negative odd numbers in the array . Displays all 4 groups of numbers on the screen . Closes the rawNumbers.dat tile using fclose) function and makes sure it was closed Your script goes here: Problem 4: Repeat all steps in probiem 3, but use vectorization and logial arrays instead of loops to separate the numbers Your script goes here

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!