MATLAB Functions Help Desk

assignin

Purpose

Assign value to variable in workspace

Syntax

Description

assignin(ws,'name',v) assigns the variable 'name' in the workspace ws the value v. 'name' is created if it doesn't exist. ws can be either 'caller' or 'base'.

Examples

Here's a function that creates a variable with a user-chosen name in the base workspace. The variable is assigned the value .

See Also

evalin      Evaluate expression in workspace.



[ Previous | Help Desk | Next ]