Re: writing user specified files



"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
.



Relevant Pages

  • Re: writing user specified files
    ... the "strcmpi" command to ask for data from the user. ... This time I want MATLAB to write the string that the ... MATLAB will then input myfun.txt into dlmread ... How do think you would call dlmread with your user input? ...
    (comp.soft-sys.matlab)
  • Re: User Input issue
    ... I have an issue with user input that I have been trying to figure out ... Unless you terminate the string with a newline the output might not appear ... An int has to be at least of 16 ... covered strings yet (I'm a college freshman in a Programming I/Novice ...
    (comp.lang.c)
  • Re: How do I find possible matches using regular expression?
    ... I'm trying to do some predicting work over user input, ... for pattern r'match me', the string 'no' will definitely fail to match, ... However if you have multiple targets, ... each input character, either the finger gets pointed at the next ...
    (comp.lang.python)
  • Copy an excel file to new created folder
    ... You can assemble the string on the ... fly by concatenating the user input onto the rest of your ... >For each file folder batch created, ... include an excel ...
    (microsoft.public.excel.programming)
  • Help w/ current Find macro so it will recognize possible trailing letters
    ... The code below performs a search of PO# based on user input. ... Public FindPOVal As String ... 'This is for the PO/PL search via UserForm12. ... Dim PO_Column As Range ...
    (microsoft.public.word.vba.general)