107 total contributions since 2012

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

3 years ago

Submitted

ale152/automagic_mask

Create a mask for PIV images automatically

3 years ago | 1 download |

Question

Read PNG from memory buffer (without dumping it into a file)

Hello, I have some PNG images saved in base64 strings. I can easily load them into memory and decode the base64 to obtain the...

3 years ago | 0 answers | 0

Submitted

PIV image tool

Alternate two PIV images with velocity vectors, to visually inspect the result of a PIV analysis

4 years ago | 12 downloads |

Submitted

POD-based background removal for Particle Image Velocimetry

The following script is a Matlab implementation of the algorithm described in the paper

4 years ago | 6 downloads |

Answered

Totally crazy behaviour of figures. Axes going around through the image!

I contacted the MathWorks Support and they confirmed me that this is a bug of the R2015a version. They also suggested me a si...

Totally crazy behaviour of figures. Axes going around through the image!

I contacted the MathWorks Support and they confirmed me that this is a bug of the R2015a version. They also suggested me a si...

4 years ago | 0

| accepted

Question

Totally crazy behaviour of figures. Axes going around through the image!

Hello, I'm working on a GUI in matlab and I ended up with a really strange behaviour in my code. I manage to isolate the prob...

4 years ago | 3 answers | 0

Submitted

ExportPngInkscape(filename,dpi,handle)

Save figures in high quality PNG by saving them in SVG and exporting in PNG using Inkscape

4 years ago | 1 download |

Submitted

Plot multiple surfaces multisurf(x,y,z,color)

Plot multiple surfaces in the same figure, with different colors

4 years ago | 8 downloads |

Answered

Hi all! I'm new to matlab. I've a problem in removing a circle object from the xray image. I've tried a few commands, but all of them are not working. help me :(

If the position of the spot is always the same, you can use the excellent function from the file exchange: http://www.mathwor...

Hi all! I'm new to matlab. I've a problem in removing a circle object from the xray image. I've tried a few commands, but all of them are not working. help me :(

If the position of the spot is always the same, you can use the excellent function from the file exchange: http://www.mathwor...

5 years ago | 0

Answered

Hello, i'm trying to search for an area of an image.

I don't know if this solution works for you, but I would use histeq to equalize the image first, then conv2 to convolve the imag...

Hello, i'm trying to search for an area of an image.

I don't know if this solution works for you, but I would use histeq to equalize the image first, then conv2 to convolve the imag...

5 years ago | 0

| accepted

Answered

How to display the Rectangles from different frames in one frame?

If you know the coordinates of your rectangles, you can simply extract each box from your image by using standard indexing: ...

How to display the Rectangles from different frames in one frame?

If you know the coordinates of your rectangles, you can simply extract each box from your image by using standard indexing: ...

5 years ago | 0

| accepted

Answered

How to calculate repetition of an unknown number present in 2nd column of a 150*2 matrix?

You can use the function hist (or histc) on the second column of your matrix.

How to calculate repetition of an unknown number present in 2nd column of a 150*2 matrix?

You can use the function hist (or histc) on the second column of your matrix.

5 years ago | 0

Answered

How to detect an absent object from a mask image and remove it on the original image?

I don't know what are your general conditions and I assume your images are always slightly different from each other and every b...

How to detect an absent object from a mask image and remove it on the original image?

I don't know what are your general conditions and I assume your images are always slightly different from each other and every b...

5 years ago | 0

Answered

How do I remove the background from this binary image?

If you found your mask for your object, you can simply remove the background by using: image % your image mask % your ...

How do I remove the background from this binary image?

If you found your mask for your object, you can simply remove the background by using: image % your image mask % your ...

5 years ago | 0

| accepted

Answered

how to get horizontal projection of histogram of an binary image ?and based on that how to segment of each line in the image? please suggest me

Given your image _im_, you can binarize it with im2bw: bw = 1-im2bw(image); The horizontal histogram (I guess) is the s...

how to get horizontal projection of histogram of an binary image ?and based on that how to segment of each line in the image? please suggest me

Given your image _im_, you can binarize it with im2bw: bw = 1-im2bw(image); The horizontal histogram (I guess) is the s...

5 years ago | 0

| accepted

Answered

Image analysis - line to value data plotting

You can use imread to read the image. If your image is already normalized, you can use find to get the elements of the line. Bei...

Image analysis - line to value data plotting

You can use imread to read the image. If your image is already normalized, you can use find to get the elements of the line. Bei...

5 years ago | 0

| accepted

Answered

How to select x,y a coordinates from two points in image?

You can use the function max, together with ind2sub.

How to select x,y a coordinates from two points in image?

You can use the function max, together with ind2sub.

5 years ago | 0

Answered

i have a number of cars in 2007 per 1000 people which is 290 , how can I make forecast the number at 2014, by simple way in matlab?

years = 2001:2005; cars = 100:100:500; new_year = 2010; interp1(years,cars,new_year,'linear','extrap') As an a...

i have a number of cars in 2007 per 1000 people which is 290 , how can I make forecast the number at 2014, by simple way in matlab?

years = 2001:2005; cars = 100:100:500; new_year = 2010; interp1(years,cars,new_year,'linear','extrap') As an a...

5 years ago | 0

| accepted

Answered

How I can add marker names with plot function?

You can use the function text

How I can add marker names with plot function?

You can use the function text

5 years ago | 0

Answered

Loop animation with quiver plot

Every time that you want to update the figure, you need to call the drawnow function. You won't probably be able to get a framer...

Loop animation with quiver plot

Every time that you want to update the figure, you need to call the drawnow function. You won't probably be able to get a framer...

5 years ago | 0

Answered

how can find matching point in two images?

I would suggest you to use normalized cross-correlation first, to get a rough estimate of the position of your object, and then ...

how can find matching point in two images?

I would suggest you to use normalized cross-correlation first, to get a rough estimate of the position of your object, and then ...

5 years ago | 0

Answered

How to replace RGB values

If I understood it correctly, you may simply use a linear scale. Once you read you image, you have a 3d matrix (row,col,3). The ...

How to replace RGB values

If I understood it correctly, you may simply use a linear scale. Once you read you image, you have a 3d matrix (row,col,3). The ...

5 years ago | 0

Answered

How can I create a row of numbers form 1 to 10 ?. like this [1.0000, 2.0000, 3.0000,...]?

Matlab deals with double variables by default. If you write 1, it is actually 1.00000000 If you just want to display it, you...

How can I create a row of numbers form 1 to 10 ?. like this [1.0000, 2.0000, 3.0000,...]?

Matlab deals with double variables by default. If you write 1, it is actually 1.00000000 If you just want to display it, you...

5 years ago | 1

Answered

Matlab is giving me multiple graphs and i'm only interested in one of them...How do i filter out the unnecessary curves that matlab is giving me?

If you go to view, plot browser, in the figure menu, you can see everything that is plotted and untick what you don't want to se...

Matlab is giving me multiple graphs and i'm only interested in one of them...How do i filter out the unnecessary curves that matlab is giving me?

If you go to view, plot browser, in the figure menu, you can see everything that is plotted and untick what you don't want to se...

5 years ago | 1

Answered

question about contour maps

If you have the torque matrix, you can simply use contour(torque). If you want to fill the space between lines, you can use cont...

question about contour maps

If you have the torque matrix, you can simply use contour(torque). If you want to fill the space between lines, you can use cont...

5 years ago | 0

Answered

to read .xls file

http://uk.mathworks.com/help/matlab/ref/xlsread.html

to read .xls file

http://uk.mathworks.com/help/matlab/ref/xlsread.html

5 years ago | 1

| accepted

Answered

How to solve segmentation violation error when I call a C-MEX function which is compiled correctly?

I suggest you to run a debugger on your C file. I've never done it on GNU/Linux, but it should be possible in the same way as on...

How to solve segmentation violation error when I call a C-MEX function which is compiled correctly?

I suggest you to run a debugger on your C file. I've never done it on GNU/Linux, but it should be possible in the same way as on...

5 years ago | 0

Answered

Change the folder names from one digit to 2 digit numbers

You can use dir, sscanf, sprintf and movefile. Use dir to get the list of the folders. Use scanf to get the number of the ...

Change the folder names from one digit to 2 digit numbers

You can use dir, sscanf, sprintf and movefile. Use dir to get the list of the folders. Use scanf to get the number of the ...

5 years ago | 1

| accepted