Recent content by Weroc

  1. W

    MATLAB How to set a variable name by user input in MATLAB

    thanks a lot for your answer, i can use the code you write to create a varname and assign values to it but the varname i want to let user set is seen as s(x) in the program... can i write some syntax to keep that place for the user assinged varname?
  2. W

    MATLAB How to set a variable name by user input in MATLAB

    Ok, i am trying to use eval for this thing but get an error message, i just typed s=input('test','s') eval(s) but MATLAB tells me that the values i enter for input are not defined before but, how can i define some variable before it's been created as i don't know which variable user...
  3. W

    MATLAB How to set a variable name by user input in MATLAB

    Yes i did, but i am a starter and couldn't find the usage of eval or evalin for this situation the samples i saw in the doc and forums were a bit too complex for me to understand... I would really appreciate a decent usage pattern of eval or the exact code i need to make that happen :) either...
  4. W

    MATLAB How to set a variable name by user input in MATLAB

    Think there is a simple solution to this but couldn't find any... Well as the title describes, i am wrote a program that generates, sorts, does some calculations and assings all results to a variable which is set before. Can i get the user assign the variable name which results will be assigned...
Back
Top