Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

11 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

11 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

11 years ago

Answered

how to set the image into axis using GUI?

It seems you name your image axes1. I'm not sure what axes11 is,nor what hadles.loadimage contains. have you tried image(ax...

how to set the image into axis using GUI?

It seems you name your image axes1. I'm not sure what axes11 is,nor what hadles.loadimage contains. have you tried image(ax...

11 years ago | 0

| accepted

Answered

remove unused callbacks from GUI m files

Should not be a problem. Be careful that that message will appear on all your callbacks (local functions), even the ones you do ...

remove unused callbacks from GUI m files

Should not be a problem. Be careful that that message will appear on all your callbacks (local functions), even the ones you do ...

11 years ago | 0

Answered

give title below a figure

subplot(1,3,1); imshow(rand(300)); mt(1) = title('TEST1'); subplot(1,3,2); imshow(rand(300)); mt(2) = title('TEST2'); su...

give title below a figure

subplot(1,3,1); imshow(rand(300)); mt(1) = title('TEST1'); subplot(1,3,2); imshow(rand(300)); mt(2) = title('TEST2'); su...

11 years ago | 2

| accepted

Answered

Display gray color only from grayscale image

imshow(I,[6 249]) if it's a 2D image slice you want to visualize.

Display gray color only from grayscale image

imshow(I,[6 249]) if it's a 2D image slice you want to visualize.

11 years ago | 0

Answered

How to assign Pixel values to the entire images?

Not 100% sure what format your images are, but try this: If A is your 32x32 image, then A = mat2gray(A) will scale...

How to assign Pixel values to the entire images?

Not 100% sure what format your images are, but try this: If A is your 32x32 image, then A = mat2gray(A) will scale...

11 years ago | 1

Answered

Fusion of CT and MRI images, MI method

Alright, for a rotation and xtranslation example: stepsize1 = pi/180; %e.g. 1 degree stepsize2 = 1; %e.g. 1 pixel ...

Fusion of CT and MRI images, MI method

Alright, for a rotation and xtranslation example: stepsize1 = pi/180; %e.g. 1 degree stepsize2 = 1; %e.g. 1 pixel ...

11 years ago | 0

Answered

"imshow" distorts jpeg

Are you displaying at the proper size? fine detail can be lost (aliasing) if your display size is too small, try maximizing it w...

"imshow" distorts jpeg

Are you displaying at the proper size? fine detail can be lost (aliasing) if your display size is too small, try maximizing it w...

11 years ago | 0

Submitted

Bichromatic colormap for real2rgb

Takes 2 RGB colors and returns a map or truecolor image. Same options as the colormaps from real2rgb

11 years ago | 2 downloads |

Submitted

Margincrop

Simple way of cropping images by specifying the amount of pixels to be cut away from the edges.

11 years ago | 1 download |

Answered

Fusion of CT and MRI images, MI method

Same as least squares, transform 1 of the images according to your criteria (e.g. rotate) then re-calculate MI. Try various tran...

Fusion of CT and MRI images, MI method

Same as least squares, transform 1 of the images according to your criteria (e.g. rotate) then re-calculate MI. Try various tran...

11 years ago | 0

Answered

imshow - Stretching image to fill axis

Have you tried image or imagesc? Or the 'axis image' command?

imshow - Stretching image to fill axis

Have you tried image or imagesc? Or the 'axis image' command?

11 years ago | 0

Answered

how to do color correction

I guess we just have to assume you are using a normal rgb format... What image analyst suggested was to use your knowledge of t...

how to do color correction

I guess we just have to assume you are using a normal rgb format... What image analyst suggested was to use your knowledge of t...

11 years ago | 0

Answered

Imagesc movie with multiple axes/matrices

I dont use colorbars often, so this was my initial idea without them: syy = reshape(syy,[size(syy,1) size(syy,2) 1 size(sy...

Imagesc movie with multiple axes/matrices

I dont use colorbars often, so this was my initial idea without them: syy = reshape(syy,[size(syy,1) size(syy,2) 1 size(sy...

11 years ago | 0

Question

Minimal variance algorithm. Ideas?

I don't have much experience with developing algorithms but I am considering the following problem: How to divide a set of numbe...

11 years ago | 1 answer | 0

Answered

How can I rescale an image while not changing the dimension of the image?

I think you want to look into imtransform, specifically the Xdata and Ydata properties. E.g. you can rotate around the center--k...

How can I rescale an image while not changing the dimension of the image?

I think you want to look into imtransform, specifically the Xdata and Ydata properties. E.g. you can rotate around the center--k...

11 years ago | 0

Question

Binary mask operation: vector into nonzero part of mask in 1 statement?

I have a logical matrix MASK and a vector VEC with real numbers (uint8 mostly). nnz(MASK) equals length(VEC). I create a new ...

11 years ago | 1 answer | 0

Answered

How to convert a matrix to a Gray scale image?

Its probably double. So do im2uint8(A) or uint8(A) if A is the matrix. Also use imshow instead of image if you can.

How to convert a matrix to a Gray scale image?

Its probably double. So do im2uint8(A) or uint8(A) if A is the matrix. Also use imshow instead of image if you can.

11 years ago | 1

Answered

How to apply Maximum likelihood estimation technique to characterize the amplitude of noise in a given time series

Im just guessing here, but since the least square fit of your time function (inverse fourier?) is a maximum likelihood estimator...

How to apply Maximum likelihood estimation technique to characterize the amplitude of noise in a given time series

Im just guessing here, but since the least square fit of your time function (inverse fourier?) is a maximum likelihood estimator...

11 years ago | 0

| accepted

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

11 years ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

11 years ago

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

11 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

11 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

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

11 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

11 years ago