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:...

meer dan een jaar 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 ...

meer dan 2 jaar 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...

meer dan 5 jaar 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...

meer dan 5 jaar 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]

meer dan 5 jaar 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...

meer dan 5 jaar ago

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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,...

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,...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

Creating an infinite loop until an event occurs?

go = true; while go step1 step2 step3 if step3==stopcriteria go=false end ...

Creating an infinite loop until an event occurs?

go = true; while go step1 step2 step3 if step3==stopcriteria go=false end ...

ongeveer 7 jaar ago | 0

| accepted

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

| accepted

Answered

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...

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...

ongeveer 7 jaar 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...

ongeveer 7 jaar ago | 1 answer | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 1

Answered

storing data from function

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

storing data from function

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

ongeveer 7 jaar 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...

ongeveer 7 jaar ago | 1 answer | 0

Answered

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...

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...

ongeveer 7 jaar ago | 2

Answered

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...

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...

ongeveer 7 jaar ago | 0

| accepted

Answered

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, ...

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, ...

ongeveer 7 jaar ago | 0

Answered

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...

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...

ongeveer 7 jaar ago | 0

Answered

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, ...

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, ...

ongeveer 7 jaar ago | 0

Answered

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...

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...

meer dan 7 jaar ago | 0

Answered

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 ...

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 ...

meer dan 7 jaar ago | 0

Answered

converting a image

im2col(a,[64 64],'distinct') will give you your blocks as columns that you just need to reshape into squares again. I can't h...

converting a image

im2col(a,[64 64],'distinct') will give you your blocks as columns that you just need to reshape into squares again. I can't h...

meer dan 7 jaar ago | 0

| accepted