Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!news.stack.nl!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Cell Syntax Quiz
Date: Fri, 11 Jan 2013 08:36:55 -0600
Organization: Aioe.org NNTP Server
Lines: 34
Message-ID: <kcp81t$a5o$1@speranza.aioe.org>
References: <kcoien$k0k$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: AKWbkpxqLeeN1zHFmoCz6g.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:786406

On 1/11/2013 2:28 AM, Greg Heath wrote:
> % CELL SYNTAX QUIZ
>
> close all, clc
>
> % For each expression
> % 1. Write the command line response
> % 2. Cut and paste the expression into the command line
> % 3. Award yourself 6 points for each correct answer
> % 4. Add 5 extra points if the expression is one of the last 2
>
> A{1,1} = [1 2 ]
> A{2,2} = [ 5 6 ]
> A{2,1} = 4 A{1,2} = 3
> A{ : }
> A{ : , : }
> A{ : , : , : }
> isequal( A{ : } , A{ : , : } )
>
> B0 = A
> isequal(A,B0)
> B1 = A{:} B2 = A{:, :}
> isequal( B1 , B2 )
>
> whos
> cell2mat(B0)
>
> % Any comments?

Yeah, my old eyes can't easily tell {} from () so it's a crapshoot to 
try... :)

--