Community Profile

# DS

40 total contributions since 2007

Contributions in
View by

Submitted

Generate uniform pseudo-random integers from linear range.
RAND_INT(R,N) returns an n-by-n matrix containing pseudo-random integer values from range R.

Responded

Re: RANDPERM
Deepak " <dksagra@yahoo.com> wrote in message <lbiqrs\$8b4\$1@newscl01ah.mathworks.com> 3 + (rand(4,1) * 10)

3 years ago | 1839 views

Responded

Re: RAND
Check out the help for RAND and RANDI. The following should work to generate 4 pseudorandom values in the range [3 10]: 3 + (r...

3 years ago | 1839 views

Submitted

Reverse concatenation: separate a data array along a specified dimension.
INVERSE_CAT splits a given data array into sub-arrays along the specified dimension.

Submitted

Convert decimal integer to arbitrary base.
DECIMAL_CONVERT generates a vector of coefficients representing a base 10 integer in a chosen base.

Submitted

Pad an image subregion, restoring it's original spatial context.
REFRAME(I,R,B) applies PADARRAY to subregion, R, returning an image with the dimensions of image, I.

Submitted

Generate a subdirectory listing from a path string.
PATH_PARTS returns a listing of strings representing subdirectories parsed from a path string.

Submitted

The function PARSE_NUMBERS applies SSCANF to read numbers from delimited string.

Submitted

Generate a vector of Cartesian integer coordinates for a 1, 2, or 3D region.
ENUM_COORDS generates a listing of the coordinates for a specified Cartesian space.

Submitted

Convert an A1-style spreadsheet column label to a number.
ABC2NUM translates an A1-style (absolute) column label reference to a number; NUM2ABC does inverse.

Submitted

Normalize 1 or 2D data to a linear range.
Function that transforms 1 or 2D data to match a specified linear dynamic range.

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

5 years ago

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

5 years ago

Responded

Re: Plotting data + colouring data points in the plot
Mateusz Matysiak" <mm355@hw.ac.uk> asked: How can I plot the intensity in xy plane so that each data point is coloured accordi...

7 years ago | 1927 views

Submitted

color_line
Plot a vector with colors defined by intensity values and a colormap.

Posted

image binning
Anyone know of any MatLab functions to "bin" images or matrices, i.e. change a 512x512 pixel image to 256x256, etc? What about d...

7 years ago | 17309 views

Submitted

vfield_color
Plot a 2-D vector field, where color is defined by a colormap and indicates vector magnitude.

Submitted

Read 2-D matrix saved with Mathematica 'Put' command.

Responded

1. Find the approximate distribution of two resistors in a parallel % connection assuming that they each have measured values, w...

8 years ago | 2772 views

Responded

Re: vertical stripe artifacts from image processing
snip> </snip> . Sorry I neglected to mention this -- I convert all the image data to type double before I do any image math. If...

8 years ago | 6244 views

Responded

Re: vertical stripe artifacts from image processing
snip> I modified your code a little to do blurring and background division. I don't notice any stripe artifacts, other than som...

8 years ago | 6244 views

Responded

Re: vertical stripe artifacts from image processing
snip> </snip> . I've posted code and images here: http://spartacus.forbrf.lth.se/~saturday/ImageClean/ . That directory should c...

8 years ago | 6244 views

Responded

Re: vertical stripe artifacts from image processing
Sorry, I was a little sloppy with my words in the OP. The "dark field" is just the image you get from dark noise, ie. with the ...

8 years ago | 6244 views

Posted

vertical stripe artifacts from image processing
Hello all. I'm trying to clean up an image in the following way: imdivide((imsubtract(Ibase,Iblank)),(imsubtract(bg,Iblank)));...

8 years ago | 6244 views

Posted

I tried your latter code, and I have the same trouble. I'm sure it would work fine if the data were well formatted; the data is...

8 years ago | 4851 views

Responded

Re: GUI to load image and draw on it???
Becca - This code (mpaint) by Joaquim Luis on the File Exchange might be helpful: http://www.mathworks.com/matlabcentral/filee...

8 years ago | 19062 views

Posted

Rune and Andres -- Thank you both for the helpful input. I got Andres' file exchange code TXT2MAT working as per the following:...

8 years ago | 4851 views

Posted

Hello all. I need to read in an ascii file, with mixed char and numeric data, and I'm reading fairly big files so I would like ...

8 years ago | 4851 views

Submitted

Patchwork
GUI wrapper for IMAGEPATCH function to create composite images and HTML image maps.