View Feed
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12834 Members
Join this group to post and comment.
AUinsy2010 • Jul 9, 2008

Matlab help: Nested loops

I'm new to the forum and in need of some help with a matlab program. Hopefully someone here is familiar with matlab and nested loops. I need to write a program to import a data set from an excel file, send the data as a matrix to a function file where each row is to be averaged and sent back to the script file to be displayed. Here's my problem, I need to deal with the possibility of blank entries in the excel file which matlab defines as NaN. I am instructed to use a nested 'for loop' to check, element by element, each value in the matrix that is to be stored in a variable for the NaN values. The output should display the values found in each row and the average for that row. This is about as descriptive as I can be, maybe someone can help.


Share this content on your social channels -