Is it possible to indent a string in Matlab?

Try this: fprintf(fid,... '%6.2f Time (sec) \n', ... '%6.2f Conc \n', ... '%6.2f pK \n', ... '%6.2f B1', ... aaa); where the string gets broken into components inside a ... block spread with continuation lines.

Thx - I am getting a warning using this - "The expression on this line will generate an error when executed. The error will be: Error using ==> vertcat CAT arguments dimensions are not consistent. " This warning also shows when removing the commas as @dominique suggested above - any ideas?

– torr Nov 22 '11 at 18:00 I have to admit I didn't try it. Maybe make it two statements, one to assign to a formatstr (with indents) and then use 'fprintf(fid, formatstr, aaa)'? – Dirk Eddelbuettel Nov 22 '11 at 18:13 Actually, I did just try at the command-line where it worked fine, including use of 'backslash-n'.

– Dirk Eddelbuettel Nov 22 '11 at 18:26 thx @dirk - actually it worked without the commas -- I had a few returns between lines that were causing the error – torr Nov 22 '11 at 18:51 Ah, yes, those are optional inside ... . – Dirk Eddelbuettel Nov 22 '11 at 18:52.

Does not really help readability but it's valid syntax: fprintf(fid, ... ' %6.2f Time (sec) \n' ... ' %6.2f Conc \n' ... ' %6.2f pK \n' ... ' %6.2f B1' , ... aaa ... ).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions