Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Export variable to .txt
Replies: 1   Last Post: Oct 17, 2012 3:53 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Thiago

Posts: 3
Registered: 9/27/12
Export variable to .txt
Posted: Oct 17, 2012 2:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I have some .xls files with 4 columns and more than 6,000 rows (numbers),that i need to import to matlab, then sort it rows...
Now I need to export this sorted variable to a .txt file
Take a look in my script

%% Import data
[~, ~, BCM2] = xlsread('path','filename','matrixrowsandcolumns');
BCM2(cellfun(@(x) ~isempty(x) && isnumeric(x) && isnan(x),BCM2)) = {''};

%% Data sort
BBCM2 = sortrows(BCM2);

%% Saving sorted Data to a text file

here is my problem, i need to generate a .txt file with this BBCM2 variable and I don't know how can i do that..

Please, any help will be welcome!

thanks!


Date Subject Author
10/17/12
Read Export variable to .txt
Thiago
10/17/12
Read Re: Export variable to .txt
dpb

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.