0

I have a text file with 5 columns and 73 rows, and I create this file from .xlsx format in excel. Now when I load this file with;

a = importdata('Input.txt')

this file is loaded in only 1 column instead of 5 columns, and the dimension of my variable a is equal to 73*1. I separate the input strings with tab and 8 spaces but nothing worked for me.

Please guide me, I am new with MATLAB. Thanks in advanced.

1 Answer 1

1

You can try xlsread instead. That should work.

[NUM,TXT,RAW]=xlsread(FILE);

where RAW returns one cell per one xls cell, which is normally preferred in favor of NUM and TXT, which require proper matrices and does not plot columns that are improper.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.