Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: curved lined on matlab plot
Date: Thu, 25 Apr 2013 23:35:28 -0500
Organization: Aioe.org NNTP Server
Lines: 19
Message-ID: <kld06i$pau$2@speranza.aioe.org>
References: <klchh9$t5m$1@newscl01ah.mathworks.com> <klcmhu$6ml$1@speranza.aioe.org> <klcpcd$jh7$1@newscl01ah.mathworks.com> <klcq37$dmv$1@speranza.aioe.org> <klcs88$qmt$1@newscl01ah.mathworks.com> <kld01l$pau$1@speranza.aioe.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: IcbzAjffnWaq9tw6UJPbag.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 NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:794385

On 4/25/2013 11:32 PM, Nasser M. Abbasi wrote:

> ------------------------
> N=12;
> close all;
> arr_rec=rand(N);
> for j=1:N
>       xx = 0:.25:N;
>       yy = spline(1:N,arr_rec(:,j),xx);
>       figure(j);
>       plot(1:N,arr_rec(:,j),'o-',xx,yy,'-');
> end
> ------------------------------
>

You can remove the line 'xx = 0:.25:N' to outside
the loop ofcourse since it is invariant.

--Nasser