« first day (1972 days earlier)      last day (1241 days later) » 

12:01 AM
Well, how are your points defined and how are you plotting your current points?
 
Let me share the code
I looked for a way to share a live script but couldn't find a way to do that.
Points are just points from each iteration in fminunc. And I am using an output function to plot each point.
 
OK, so you're plotting one point after the other. Instead of this, collect your points in an array and plot with a single call to plot.
 
Hmm how could I collect them all in an array?
 
What I don't understand is output function is passed only a point at each iteration and output function is called within fminunc. Where would I store the points
 
12:17 AM
Oh, sorry, I missed that this is inside another function. What calls that function out?
 
fminsearch calls it, so you create an optimset (options) with the out function and you pass options to fminsearch.
 
Ah, right, it's right there on the first line. Sorry.
There's probably a smart way to do this, but my MATLAB is too rusty. Someone else will probably be able to give you an answer that doesn't use globals, but the regulars are all asleep now and it's a weekend.
 
I was thinking about globals as well but then I thought that there might be a better way. Alright thank you for the help anyway! :)
 
 
8 hours later…
8:44 AM
@AndréYuhai you don't have to use globals, but you can always access variables defined in the same scope as the function was defined. so you can define an accum=[] and continuously add value in your outputfcn with accum=[accum, newValues] or so
 
9:11 AM
@flawr yes, someone has already helped me with that the same way you've described. I just couldn't think of a way to use parameterization as I'd never used that. Here it is: mathworks.com/matlabcentral/answers/…
Thank you
 
9:38 AM
@AndréYuhai what exactly do you mean by parametrization?
 
10:23 AM
@flawr What you'd described was called parameterization if I am not mistaken. Well after another look at the documentation, I might be wrong but still the idea is similar I guess. :D mathworks.com/help/matlab/math/parameterizing-functions.html
 
I don't think it is a general term
 
 
11 hours later…
oof
that badly needs one of those "always rising" sounds
 
9:29 PM
A Shepard tone, named after Roger Shepard, is a sound consisting of a superposition of sine waves separated by octaves. When played with the bass pitch of the tone moving upward or downward, it is referred to as the Shepard scale. This creates the auditory illusion of a tone that seems to continually ascend or descend in pitch, yet which ultimately gets no higher or lower. == Construction == Each square in the figure indicates a tone, with any set of squares in vertical alignment together making one Shepard tone. The color of each square indicates the loudness of the note, with purple being the...
 
 
2 hours later…
11:25 PM
@AndrasDeak Hey! Temuera Morrison is in the series! (Not sure what character he plays yet, but I just saw episode 9 and he appears at the end)
 
OK, you'll have to stop soon because I'm behind with a few episodes in the new season ;)
 
11:37 PM
Oh! Sorry. I thought you had seen all there are so far. So where are you now? I just watched 9th (1st of season 2)
 
Watched the first three of S2 I think
no, 2.5 episodes actually
 
Noted
 

« first day (1972 days earlier)      last day (1241 days later) »