Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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) ' =...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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;

plus de 13 ans il y a | 0

Réponse apportée
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; ...

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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]

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Combining Cells into a single cell
use the standard concatenation operator [ ] AllCell = [Cell1; Cell2; Cell3; Cell4; Cell5; Cell6];

plus de 13 ans il y a | 4

| A accepté

Réponse apportée
Matrix Multiply Problem and how to write at Matlab
C = inv(A)*B or C = A\B

plus de 13 ans il y a | 0

| A accepté

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


inner product of two vectors
inner product of two vectors

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a