Answered
how do i perform local normalization of fingerprint image. please correct this code the sise of my image is 480x640
It's a one-liner X = blkproc(I, [150 100], @(x) (0.5 + x - mean2(x))./(std2(x)/0.25)); You may want to change the normal...

13 years ago | 0

Answered
How to select a particular portion of an image and take Fourier transform
Select the white spot znew = zeros(size(z)); znew(244:270, 325:350) = z(244:270, 325:350); Take the inverse FFT ...

13 years ago | 0

Answered
dynamic name variable as the output of a function
This should do the job: eval(['output' int2str(i) ' = call_function(ipath);']) or eval(['output' int2str(i) ' =...

13 years ago | 1

Answered
Trouble using switch case
I think you can fix it if you put the "if y " first in the 'ACTIVE' case and then switch depending on whereActive case 'ACT...

13 years ago | 0

Answered
Messy data, finding an outlier as a value greater of less than the previous value and replacing with Nan
X = [1.3 1.4 1.3 1.3 1.9 1.3 1.4]; X(find(diff(X) > 0.5) + 1) = NaN;

13 years ago | 0

Answered
How can i save a vector with a variable length ?
Use a cell V to store the vectors for i = 1:N vec_of_variable_length = ... V{i} = vec_of_variable_length; ...

13 years ago | 0

| accepted

Answered
How to randomize image display?
myimagedir = '.../matlab/BMP/*.bmp'; d = dir(myimagedir); for i = randperm(numel(d)) % show all images in ra...

13 years ago | 0

Answered
How can the Neighbourhood function of a Self Organizing map be estimated?
width = 2; % == sigma of Gaussian neighboring function % change to select size of neighborhood that is about 3 x sigma b ...

13 years ago | 0

Answered
how can i change the columns in the matrix? For example I wanna change 2nd and 3rd column
A = rand(4); % sample matrix B = A(:, [1 3 2 4]

13 years ago | 0

| accepted

Answered
Combining Cells into a single cell
use the standard concatenation operator [ ] AllCell = [Cell1; Cell2; Cell3; Cell4; Cell5; Cell6];

13 years ago | 4

| accepted

Answered
Matrix Multiply Problem and how to write at Matlab
C = inv(A)*B or C = A\B

13 years ago | 0

| accepted

Solved


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

13 years ago

Solved


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

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

13 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

13 years ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

13 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

13 years ago

Solved


inner product of two vectors
inner product of two vectors

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

13 years ago

Solved


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

13 years ago

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

13 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

13 years ago

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

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

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

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

13 years ago

Solved


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

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

13 years ago