How do I read a series of data into a matrix with fixed row number but varing column number?

Discussion in 'MATLAB' started by Tiger Smith, Aug 25, 2009.

  1. Tiger Smith

    Tiger Smith Guest

    I need read in a series of number, for example 5 channels. That's the row number.The row number is fixed.
    And I must read it from channel 1 to the last channel.
    But each channel the data length keep changing and I can't get the length information in advance. I want to put these data in a matrix and use it later. For the channel with short data I can pad in the mean of the data or zero.
    How can I generate such a matrix with fixed number of row and column number is the max length of the data of one channel?

    Thank you.
    Tiger Smith, Aug 25, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.