Question: MATLAB WHICH ANSWERS ARE CORRECT Given a file called datavals.dat, we want to sum all the odd numbers in each row. The following script SumOdd.m




Given a file called datavals.dat, we want to sum all the odd numbers in each row. The following script SumOdd.m is proposed with some spaces to be filled: Load datavals.dat -----2------ = size( ------1-------); for row = 1:a Sum = 0; for col = 1:0 if mod(-------- -?3- Sum = end -- ), 2) -=0 - 24- end end then the space ?1 is: ThanCA 22. end then the space ?1 is: a.m b.dat data.dat SumOdd.m none of the answers is correct The space ?3 is: The space ?4 is: then the space ?1 is: The space ?2 is: row col row.col [row,col) [a,b] none of the answers is correct The space ?4 is: . then the space ?1 is: The space ?2 is: . The space ?3 is: datavals(a,b) datavals (row.col) SumOdd(a,b) SumOdd(row.col) none of the answers is correct . The space ?2 is: The space ?3 is:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
