Search All of the Math Forum:

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

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

 Messages: [ Previous | Next ]
 Bruno Luong Posts: 9,822 Registered: 7/26/08
Re: Making a square matrix from two vector
Posted: Feb 14, 2013 2:11 AM

dpb <none@non.net> wrote in message <kfgb3g\$obo\$1@speranza.aioe.org>...

>
> That's again my observation there is no definitive language reference
> for Matlab--only a more or less complete narrative description.

MATLAB language part is well defined (behavior of function declaration, input output, statements such as if swicth/case, while, the keyword end, ... The use of [], (), {}, Even COLON operator.

What can be considered narrative is the library functions that comes with. But they are not MATLAB language. Don't mix both.

>
>

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

>
> Well, that's a problem when the behavior doesn't follow the description
> but if there is no description it seems rather rude to blame that on the
> user. :)

I never blame anyone when the problem is not mine. :-)

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

>
> Would all depend on context. Again, you bring in unrelated issues

Precision: They are not issues to me.

I tried to give you various examples for behavior and simply ask you whereas you consider as "meaningless". I never get a clear answer. You never backup the characteristic "meaningless" you state somewhere op top of this thread, beside given argument the result is not what you expect to be, and accuse that people using the odd usage of colon with complex numbers knows nothing about the language.

Here is one more (out context) example:

>> a = sort([10i 1])

a =

1.0000 0 +10.0000i

>> a(1) < a(2)

ans =

0

This might seem meaningless to you. Yet it's perfectly defined and documented behavior. So they mean something, at least to me.

Bruno

Date Subject Author
2/8/13 Jerry
2/8/13 Barry Shaw
2/8/13 dpb
2/8/13 james bejon
2/9/13 Bruno Luong
2/9/13 james bejon
2/9/13 Bruno Luong
2/12/13 james bejon
2/12/13 Steven Lord
2/12/13 Bruno Luong
2/12/13 dpb
2/12/13 Bruno Luong
2/12/13 dpb
2/13/13 Bruno Luong
2/13/13 dpb
2/14/13 Bruno Luong
2/14/13 dpb
2/14/13 Bruno Luong
2/14/13 dpb
2/14/13 dpb
2/13/13 james bejon
3/18/13 James
3/19/13 Bruno Luong