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: Making a square matrix from two vector
Replies: 22   Last Post: Mar 19, 2013 12:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruno Luong

Posts: 9,822
Registered: 7/26/08
Re: Making a square matrix from two vector
Posted: Feb 13, 2013 2:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dpb <> wrote in message <kfelra$b4d$>...
> On 2/12/2013 5:14 PM, Bruno Luong wrote:
> > dpb <> wrote in message <kfefok$qn7$>...
> >> On 2/12/2013 3:35 PM, Bruno Luong wrote:
> >
> >>
> >> Why would anyone write such, anyway, and expect anything meaningful?

> >
> > What is "meaningful"?
> >

> What do you think
> 1i:10-2i
> should do?

I'm fine if it does exactly like currently. I link to a post where the behavior is described. I never complain about it, excepted that the behavior is currently not documented.

> Now, I can see there could argued to be a syntax for complex series
> sequence generation, but it would need a complex delta...the previous
> doesn't have any apparent difference that corresponds at all to the
> implied unit difference of real colon inputs.
> And, while it indeed was once a novel concept for complex variables,
> it's now been quite some time... :)
> I was, however, speaking in terms of defined ML syntax, not hypothetical.

If one wants to develop a function that accept any kind of numerical data, the behavior should be defined. So it is legitimate to speak how colon behave when feed in complex data. That's how a specification of a function is defined and developed. This is the basic concept of software development.

Now if user can't make head or tail with the behavior of such and such function, that's his problem.

Recently I use the fact that ([]:1) return an empty set, therefore allow me to save 1 test in my implementation. Is it meaningless?


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.