Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Simplified Calling Syntax vs. property name/property value syntax
Posted:
Nov 11, 2012 4:17 PM
|
|
I was surprised to read this:
http://www.mathworks.com/help/matlab/creating_plots/core-graphics-objects.html
----------------- "Simplified Calling Syntax
Object creation functions have convenience forms that allow you to use a simpler syntax. For example,
text(.5,.5,.5,'Hello')
is equivalent to
text('Position',[.5 .5 .5],'String','Hello')
Using the convenience form of an object creation function can cause subtle differences in behavior when compared to formal property name/property value syntax." ----------------------------
Note what it say at end about "subtle differences in behavior"
Why would the behavior be different? In what way it is different? This is confusing now as I always thought it is the same call, just different syntax and the result of the call should be the same?
--Nasser
|
|
|
|