Community Profile

# Stephen

### University of Florida

116 total contributions since 2012

View details...

Contributions in
View by

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

mer än ett år ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

mer än 4 år ago

Solved

Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

ungefär 7 år ago

Solved

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

ungefär 7 år ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

ungefär 7 år ago

Solved

Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

ungefär 7 år ago

Steepness of a Histogram
if he had an exponential distribution vs. a normal, there's different 'steepness' in each one depending on what you examine, but...

mer än 8 år ago | 0

Plotting data labels with the mapping toolbox
could you just refresh the original background image and only plot the updated city info? Completely erase the pre-existing map,...

nästan 9 år ago | 0

Want to create a 3d graph of chi^2 for a 2d data set /w 3 parameters
it looks like X and Y are not a single value, but the result of meshgrid, and when you perform the .* operations with the 1001 e...

nästan 9 år ago | 0

Creating an infinite loop until an event occurs?
go = true; while go step1 step2 step3 if step3==stopcriteria go=false end ...

nästan 9 år ago | 1

| accepted

image deblurring or noise removal
try doing the same process to a matrix of ones and using ./ to get rid of the vignetting effect. Probably, whatever you're doing...

nästan 9 år ago | 0

Making multiple matrices at once?
make a structured variable for t=1:n^2 V(t).matrix=zeros(n); end Call them by V(t).matrix and get spec...

nästan 9 år ago | 0

| accepted

plots - graphics quality poor
save them as jpegs or something... you can make lines thicker with the set() command and change the default font and stuff. b...

nästan 9 år ago | 0

Question

soundsc
So, I noticed that you can't cntr + c out of the sound playback from soundsc. Is there a way to kill the horrible noises I'm mak...

nästan 9 år ago | 1 answer | 0

### 1

Dynamic color for a plot
if you want to change a bunch of stuff with plot, you could do it like this: mark=['^';'s','o','.','x'] for t=1:5 h...

nästan 9 år ago | 0

Unknown Error
if the function usually outputs 1 thing and you ask for more, it will give you that error. for example, function ans = myfu...

nästan 9 år ago | 0

gaussian and rayleigh distribution MRI Late Enhancement
[c1, c2] = hist(I(:), 50); f=fit(c2', c1', 'gauss1'); or for the rayleigh, you'd have to specify it in fittype where 'g...

nästan 9 år ago | 0

Video capture
that's not really a matlab question, but why can't you just save video to your camera's storage device and import it later throu...

nästan 9 år ago | 0

bwlabel changing connectivity of image
I agree with Image Analyst. Is your image a jpg or has it been compressed? If so, there are little ghosts that lurk as low inten...

nästan 9 år ago | 1

storing data from function
So, you have: function something [sound, freq] = wavread(file); end ? If so, you need to output those valu...

nästan 9 år ago | 0

Question

just a question
let's say i have the image: img = [1 0 -1; 0 -1 0; 1 1 -1]; and I'd like to get the values on the 8-connected...

nästan 9 år ago | 1 answer | 0

### 1

Detect a human figure in a live video
if the camera is static, take a blank image and subtract it from the live feed to get a rough idea of what pixel values have cha...

nästan 9 år ago | 2

composite function
plot(C,A) you can plot anything against anything else. If A and C correspond to the same values of B then the above code sh...

nästan 9 år ago | 0

| accepted

colorbar: cdata and colors
imagesc automatically scales your image to 'fit' to the colorbar. It can be a huge pain sometimes. If you can get away with it, ...

nästan 9 år ago | 0

manual segmentation of image
imfreehand methods imfreehand

nästan 9 år ago | 0

how to select certain shape from different images?
haha, Walter :) You can use the rucklidge algorithm. It relies on the haussdorf distance of a set of points, say the 10 point...

nästan 9 år ago | 0

Re-Asking a Question: Creating a Connection Matrix from an indexed point set
after looking at it for a while I think I understand. let me use N=3 to try and restate what you've asked... from points, ...

nästan 9 år ago | 0

How to save/access an axes's properties using the handles structure?
I used to know how to answer this better, and maybe a bit of reading will answer based on my advice. In each function of the GUI...

nästan 9 år ago | 0

determine the angle of image
show the image somehow and use: pos = ginput(3); it will give you the option to chose three points on your image. click ...

nästan 9 år ago | 0