Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

make a variable without writing its letters

Status
Not open for further replies.

bastouil

Automotive
Sep 23, 2006
3
Hi,
I have z='name';
so z is a char array.
and i would like to make a variable name = 6; without writing "name = 6" in the command window.
so it should be smth like num2str(z) = 6 ; (that doesn't work)
is there a function which make that ?
thanks
 
Replies continue below

Recommended for you

i don't know if my explanation is good.

i would like :

anyfunction(z) = 6;

and the result would be : variable "name" in the workspace (value = 6, double array)
 
I'm glad you're answering your own questions, given that:
> you don't say what program you're even talking about
> You don't explain clearly what you think you're trying to do

TTFN



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor