Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Simplified Calling Syntax vs. property name/property value syntax
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Nasser Abbasi

Posts: 5,596
Registered: 2/7/05
Simplified Calling Syntax vs. property name/property value syntax
Posted: Nov 11, 2012 4:17 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.