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

más de 13 años hace | 0

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

más de 13 años hace | 0

Respondida
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) ' =...

más de 13 años hace | 1

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

más de 13 años hace | 0

Respondida
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;

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

Respondida
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]

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 4

| aceptada

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

más de 13 años hace | 0

| aceptada

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


inner product of two vectors
inner product of two vectors

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace