MATLAB: Possible to create a function where the input is changed

functionfunctionsinputMATLAB

I understand it is one of the "cardinal rules" of MATLAB that functions do not affect the input values (versus scripts that do); however, is it possible to create a function where this is violated?
For example:
>>x = 10
>>Function(x)
%Running this would change the value of x in the workspace to some other value

Best Answer

doc assignin
doc evalin
Why would you want to do this?