| MATLAB Central > MATLAB Newsreader > basic MATLAB question |
|
|
|
I have a script where I input specific columns from a ascii file and perform a function on them. Is it possible to set the name, of the file I import, as some kind of variable so that I don't have to write the filename over and over for each time I import it? |
|
bump |
|
Kim <kili@kth.se> wrote in message <1484051125.10969.1258114196390.JavaMail.root@gallium.mathforum.org>... |
|
Just omit the quotes when passing the filename to the function: |
|
Thank you, worked great! |
|
On Nov 13, 10:00 am, Kim <k...@kth.se> wrote: |
|
ok, I'm not sure how to use sprintf(), how would I go about saving my file with the same name as the the input file but with the ending "_output.xls"? |
|
Kim wrote: |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
