Re: writing user specified files
- From: Peter Boettcher <boettcher@xxxxxxxxxx>
- Date: Fri, 18 Jul 2008 17:04:00 -0400
"Ender " <jr147@xxxxxxxxxxx> writes:
Peter Boettcher <boettcher@xxxxxxxxxx> wrote in message
<muysku9bv4s.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
Ender, you've been hanging out around this group for a while time
now, and I think you already have the experience to know what a
string variable is.
What datatype does dlmread take? What datatype does your user input
function return? Can you display the results of that input?
How do you call dlmread now? If it's a literal string, how would put
that into a variable and call it from there?
How do think you would call dlmread with your user input?
I don't understand what is wrong with this code. I think
that MATLAB is not passing the string to user entry or the
import file is not recognizing the variable that is
attached to user_entry. Here is an example of my code:
disp('What is the name of the file.extension')
disp('that you want to upload?')
user_entry = input(' ','s');
% Import the file
PIT_MKV_2 = importdata('user_entry');
I am using the MATLAB created function to read both the
text and the numbers in the file that is being uploaded.
You are ignoring my questions. They are designed to help you figure
this out on your own, which you are fully capable of.
You are confusing literal strings and variables. One of them is
surrounding by quotes. The other is not.
Stop after you finish user_entry. Can you display the results of the
input call (hint: disp)? How? What does the function call look like?
In other words, play around in the workspace if you can't get something
to work.
-Peter
.
- Follow-Ups:
- Re: writing user specified files
- From: Ender
- Re: writing user specified files
- References:
- writing user specified files
- From: Ender
- Re: writing user specified files
- From: Peter Boettcher
- Re: writing user specified files
- From: Ender
- writing user specified files
- Prev by Date: Re: Saving to a file
- Next by Date: Subscripted assignment dimension mismatch
- Previous by thread: Re: writing user specified files
- Next by thread: Re: writing user specified files
- Index(es):
Relevant Pages
|