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: formatSpec
Replies: 6   Last Post: Nov 28, 2013 1:00 PM

Advanced Search

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

Posts: 3,919
Registered: 12/7/04
Re: formatSpec
Posted: Nov 27, 2013 7:42 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Thursday, November 28, 2013 12:06:08 PM UTC+13, Jerry wrote:
> Hi everyone,
>
>
>
> I am opening a text file with19 columns as shown here:
>
>
>
> formatSpec = '%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%[^\n\r]';
>
>
>
> I am wondering if there is a way to reduce the length of this command line by eliminating number of %s.
>
>
>
> Thanks,
>
> Jerry


repmat('%s',1,19)


Date Subject Author
11/27/13
Read formatSpec
Jerry
11/27/13
Read Re: formatSpec
Derek Goring
11/28/13
Read Re: formatSpec
Jerry
11/28/13
Read Re: formatSpec
dpb
11/28/13
Read Re: formatSpec
Jerry
11/28/13
Read Re: formatSpec
dpb
11/28/13
Read Re: formatSpec
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.