The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 6,677
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:

"Simplified Calling Syntax

Object creation functions have convenience forms that allow you to use a
simpler syntax. For example,


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?


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.