« first day (74 days earlier)      last day (3161 days later) » 
05:00 - 22:0022:00 - 00:00

10:39 PM
hello
 
Hi @udaysagar :)
 
I have a question on matlab
 
sure, go ahead
 
any matlab experts here?
 
there are a few folks who can probably help... what's your question?
 
10:43 PM
%%------------------------------------------------

% PMFdata.m
%
% It is a function subprogram.

% This program generates the outcomes for N trials
% of an experiment for a discrete random variable.
% Uses the method of Section 5.9 from Kay's textbook.

%
% Input parameters:
%
% N - number of trials desired
% xi - values of x_i's of discrete random variable (M x 1 vector)
% pX - PMF of discrete random variable (M x 1 vector)

% Output parameters:
%
% x - outcomes of N trials (N x 1 vector)
needs comments for the program
 
well, I'm not going to do your homework for you, but if you have a specific question...
have you tried running the code in the debugger and stepping through to see what it does?
 
phew, back!
 
welcome back, Ray :)
 
in that program we are not able to find how the bins are going to be created
Please help me in understanding how bins are created
Thanks in advance!
 
The part where bin is built is:
 
10:52 PM
@beaker thank you! :) How was your day?
 
for k=1:M
   bin(k,1)=<something>
end
@OneRaynyDay a bit slow... not much going on here
 
@udaysagar also, you should probably put that stuff inside of a pastebin
it's probably not very readable on a chat room
ah I see, all good! It's a sunday for me so I'm trying to relax a bit haha
 
@udaysagar I've reduced the loop down to its essentials so you can see that it's building up bin as a column vector for rows 1:M
the if... else is just to handle the first entry bin(1,1) differently than the rest
@udaysagar Does that make sense, or did I misunderstand your question?
 
yup i got it..thank you so much for your help
 
11:10 PM
@udaysagar - You came into a room for MATLAB and Octave.... what makes you think we don't know it? :)
 
@rayryeng I could just be the doorman :)
I did a bit more looking around, and as far as I can tell, nobody's been able to compile Octave 4.0 for Mac
it's not just macports, they can't even build it from scratch
 
Wow.... f*ck sake.
 
time to fire up virtualbox, i guess
 
What are the benefits to upgrading?
other than being able to install the packages
 
11:26 PM
well, the gui is supposed to be more stable
i need to figure out how to get it to use something other than emacs editing :/
 
is there a way to set the default editor?
 
all i can see is one checkbox saying "Use custom file editor"
and if i try to change that to vim it does all sorts of nasty things
 
:S??
it defaults to emacs?
What is this world coming to?!
 
well, that's the custom editor that was supplied in the text box... tried replacing it with vim
and i don't remember enough of emacs to tell if that's working properly or not
1
A: How can I find local maxima in an image in MATLAB?

chappjcIn addition to imdilate, which is in the Image Processing Toolbox, you can also use ordfilt2. ordfilt2 sorts values in local neighborhoods and picks the n-th value. (The MathWorks example demonstrates how to implemented a max filter.) You can also implement a 3x3 peak finder with ordfilt2 with t...

did you know there was an ordfilt2 function?
 
@beaker - Yup
I've used it seldomly.
But I did use it to explain an image processing question
 
11:40 PM
I mean it makes sense... if you're going to have a median filter you might as well generalize it...
I just never had the opportunity to use it
 
yup :) It's very nice.
Here we go
4
A: Trying to find/understand correct implementation of Harris Corners

rayryengFor self-containment, the calculation of the Harris Corners is based on the calculation of the correlation matrix M: For each pixel in the image, you want to collect a N x N pixel window weighted by Gaussian weights and compute the response value R at the location (x,y) in the image by: Val...

ordfilt2 was used in this code for non-maximal suppression for interest points.
 
see, I must have implemented that myself, because I know I implemented Harris at some point and I don't remember ordfilt2
 
oh :)
ordfilt2 is a very nice tool.
 
05:00 - 22:0022:00 - 00:00

« first day (74 days earlier)      last day (3161 days later) »