help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plots points smoothing


From: Oscar Bayona Candel
Subject: Plots points smoothing
Date: Thu, 5 Jun 2008 21:55:36 +0200

Hi all,
 
I want to customize a graph with two options. The first one is to smooth lines that union the diferent time points.
 
The second, if it is posible is to envelope, and connect the maximum points with the minimum smothing this union.
 
If you run this file you will see "peaks" I want to elimite them and make more homogeneus graphic.
 
 
function R1
a=[100 247.6020083 286.3675761 272.3062174 80.26950483 139.8426301 78.34706759
100 239.0873028 123.4637728 140.7330533 120.625691 -10.4388691 23.13858934
100 33.43627631 4.81526546 112.0913254 47.42491211 229.1219878 144.4392328
100 14.48044685 48.06236485 149.4893629 70.95881807 143.6070638 126.1001037
100 192.8579963 41.88150753 117.6747567 130.9839551 104.7505698 173.850395
100 63.98035103 71.86857643 220.4943286 102.7295789 136.8557571 149.045101
100 222.5996084 56.4790972 134.3171959 236.5824703 62.41059324 8.088869066
100 23.06745092 41.26546571 79.37406245 275.9073594 272.5928681 84.63212985
100 76.9210449 279.2402298 108.1317323 56.18829819 144.9506979 66.32051613
100 -113.6787362 118.8788474 40.85110524 43.61666578 74.49854451 234.9635424
100 75.83113309 5.37011882 113.554889 133.3502406 63.76897457 -76.46719427
100 158.8205968 221.6742911 -7.952528826 264.7801533 205.9813716 171.3093441
100 -104.513704 124.6029514 25.12435003 -62.06899129 62.22258095 39.10232772
100 79.34780168 291.6122404 192.8458895 200.5386263 105.4680114 -2.853494564
100 97.7905608 58.03397026 -10.99872902 106.0123175 55.37186651 -35.38964088
100 158.791745 167.2811586 115.5301998 46.18000075 -35.83984053 44.29784635
100 -49.76741488 -38.13763622 42.6206969 170.1760672 172.5956422 198.2358879
100 49.37659496 33.15366038 -44.28011181 49.47050005 137.0366161 59.20602828
100 -97.30115079 41.86501017 137.6105498 110.1227608 108.4026112 243.6586799
100 -39.35000333 166.3355026 123.8335488 231.4431456 -24.05193574 76.75505041
100 -19.05642395 141.7483176 24.58494504 54.0625926 93.27244676 225.7758027
100 36.11136484 -49.61304664 82.02096518 90.76583852 -129.6667387 -7.992638563
100 83.00767778 -45.72753514 102.2809656 140.6478623 214.7422103 176.5430224
100 55.49177935 181.4050029 42.49151968 199.1295464 19.25956558 94.3691482];

plot(a')
 
 
 


> From: address@hidden
> Subject: Help-octave Digest, Vol 27, Issue 12
> To: address@hidden
> Date: Thu, 5 Jun 2008 12:03:40 -0500
>
> Send Help-octave mailing list submissions to
> address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> or, via email, send a message with subject or body 'help' to
> address@hidden
>
> You can reach the person managing the list at
> address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help-octave digest..."
>
>
> Today's Topics:
>
> 1. how to increase figure size ? (Bigler St?phane)
> 2. Re: slow/non-convergence of qp() on convex problems - is it
> to be expected? (Joshua Redstone)
> 3. Re: TextMate for Octave was Re: Octave Editor on Mac Leopard
> OS X (Matt Foster)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 5 Jun 2008 15:49:51 +0200
> From: Bigler St?phane <address@hidden>
> Subject: how to increase figure size ?
> To: "address@hidden" <address@hidden>
> Message-ID:
> <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> Does anyone know how to set figure size within octave?
>
> For example, the code below print y=f(x) in a (too) small window:
>
> figure() ;
> x = 1:1:10 ;
> y= 3*a ;
> plot(x,y) ;
> title('figure_title') ;
> xlabel('x [m]') ;
> ylabel('y [m]') ;
> legend('y=f(x)') ;
> grid on ;
> print -deps -landscape file_name.ps ;
>
> In order to get a good quality print, I really need to increase the size of the figure. How to do it?
>
> Any help would be really appreciated.
> Thanks in advance for answering.
>
>
> SBr
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080605/3d51c5c7/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 5 Jun 2008 07:55:24 -0700
> From: "Joshua Redstone" <address@hidden>
> Subject: Re: slow/non-convergence of qp() on convex problems - is it
> to be expected?
> To: address@hidden
> Message-ID:
> <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Followup: I've poked around more and it looks like this is a bug in qp().I've
> sent an email describing the problem in detail and included a '.dat' file to
> reproduce it.
> The email sent to bug-octave has subject line: qp() in octave-3.0.0 gets
> stuck on wrong answer to convex problem
> Josh
>
> On Tue, Jun 3, 2008 at 8:52 AM, Joshua Redstone <address@hidden> wrote:
>
> > Hi all,I'm having difficulty getting qp() to find the global minimum of
> > the particular class of convex problems I'm trying to solve.
> > The success of qp() in finding the global solution seems, even when
> > executing for thousands of iterations, seems to be very sensitive to the
> > initial value x0 specified.
> > I'm wondering if this is to be expected, and what I can do to make my
> > problem more amenable to qp()'s algorithm.
> >
> > Details:
> > I modified qp() to take an extra parameter, maxiter, specifying the maximum
> > number of iterations.
> > For a particular problem instance, I find that even with maxiter set at
> > 3000, I have to call qp() many times with different
> > values of x0 before it will return info=0 - which means 'The problem is
> > feasible and convex. Global solution found.'
> > The other times, qp() returns info=3 - which means 'Maximum number of
> > iterations reached.'
> > Furthermore, when qp() returns info=0, the objective function value is
> > 1e-28, while, when it returns info=3, the
> > objective function value is more like 1e-2. Is this to be expected? Is
> > there a way I could modify either my problem or choose another
> > convex solver besides qp() that might have better luck?
> > The class of convex problems I'm trying to solve is of dimension 100, and
> > there are two equality constraints and six inequality constraints.
> > Any suggestions?
> > I can attach an octave file with an instance of this behavior if it would
> > help.
> > Thanks,
> > Josh
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080605/ecf282fc/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Thu, 5 Jun 2008 16:12:33 +0100
> From: "Matt Foster" <address@hidden>
> Subject: Re: TextMate for Octave was Re: Octave Editor on Mac Leopard
> OS X
> To: address@hidden
> Message-ID:
> <address@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> On Thu, Jun 5, 2008 at 1:07 PM, John W. Eaton <address@hidden> wrote:
>
> > I'd appreciate it if you would not promote non-free (as in freedom)
> > software on the Octave mailing lists.
> >
> > Thanks,
> >
> > jwe
> >
>
> Sorry. I meant no offence.
> Cheers,
> Matt
>
> --
> Matt Foster | http://my-mili.eu/matt
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080605/cdeba48c/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>
> End of Help-octave Digest, Vol 27, Issue 12
> *******************************************



Sigue de cerca las últimas tendencias y lo que más rompe MSN Vídeo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]