Question: Write a MATLAB program to read in numbers from a file one at a time until a negative even number is read in or there
Write a MATLAB program to read in numbers from a file one at a time until a negative even number is read in or there are no numbers left to be read. Calculate the average of the numbers that were read in, not including the negative even number. Remember to account for the case where the first number read in is a negative even number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
