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: I need optimized way to get classes
Replies: 4   Last Post: Jun 2, 2012 8:04 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,688
Registered: 2/7/05
Re: I need optimized way to get classes
Posted: Jun 2, 2012 6:30 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 6/2/2012 5:23 AM, besbesmany besbesmany wrote:
> sorry
> ppp=p(1:end,:);


But, again, why not just write

ppp = p

What is the difference between p(1:end,:) and just p ?

>
> "Nasser M. Abbasi"<nma@12000.org> wrote in message<jqco9g$ht2$1@speranza.aioe.org>...

>> On 6/2/2012 4:25 AM, besbesmany besbesmany wrote:
>>

>>> p = [0.8 0.1 0.1; 0.7 0.1 0.2; 0.2 0.3 0.5]
>> ...
>>> the following code:
>>>
>>> ppp=P(1:end,:);

>>
>> How is the above different from just writing
>>
>> ppp=P;
>>
>> ?
>>
>> (btw, Matlab is case sensitive, you wrote 'P' above, when you should
>> it as 'p' before. The case is different !)
>>





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.