Answered
How to implement Zernike moments?
Hi. <http://www.mathworks.com/matlabcentral/fileexchange/38900-zernike-moments>

11 years ago | 0

Answered
find and ismember are not working for one number in a vector
Hi. See this: <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

11 years ago | 0

| accepted

Answered
How to remove middle part of data on Histogram plot
Hi. I=imread('cameraman.tif'); h=imhist(I); h(ceil(1/10*256):floor(6/10*256))=0; bar(h,.2)

11 years ago | 0

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

11 years ago

Solved


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

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

11 years ago

Answered
accessing excel content nd writing d content one by one into imread instruction..
Hi. You don't need to use fopen or fclose. [~,txt,~] = xlsread('tun.xlsx'); disp(txt); for i=1:20 A=txt{1,i...

11 years ago | 0

| accepted

Answered
how to produce a 2-D point distribution with normal density distribution
With adding a number in x and y directions you can change their position, and the number multiplied changes their radius: A...

11 years ago | 1

Answered
How to find all possible combinations of 3 nos chosen from 3 different sets??
Hi. C=1:1:100; D=1:1:150; E=1:1:125; [x,y,z]=meshgrid(C,D,E); A=[y(:) x(:) z(:)];

11 years ago | 1

Answered
How do you automatically put values into an array when in a loop?
Hi. Without loop: NoS = 6; NoJ = 4; data1=reshape(data(1:96,3),4,24); bars=mean(data1); errors=std(data1); ...

11 years ago | 0

Answered
how can i compare one vector with the other vector when all the stored in a matrix.
Hi. B= [ 12 34 56 78 34 76 98 21 98 76 56 34 12 34 56 78 12 34 56 78 34 76 98 ...

11 years ago | 0

| accepted

Answered
In the rule viewer in the Fuzzy toolbox, how to to insert many inputs at one time and get the output automatically in the text format?
Hi. You can use evalfis : a = newfis('fis1.fis'); %create a new FIS file a = addvar(a, 'input', 'x', [2 9]);%add and i...

11 years ago | 0

Answered
How to change an entire column.
A = randi(10,[10 640])-1; B = A; B(:,sum(A==0)>0)=0;

11 years ago | 1

| accepted

Answered
Need to find the value of x_?, where x_? is x at y=?......
Hi. x=[0.1; 0.05; 0.2]; y=[20; 15; 85]; x(y==15)

11 years ago | 0

| accepted

Answered
Pole Plot of System-vector
Hi. It's works, but maybe it's not correct: c = rand(121,3); Cell_Den = mat2cell(c,ones(121,1),3)'; Cell_Num(1:121) =...

11 years ago | 0

Answered
Histogram thresholding to get the threshold point
Hi. % code x=imread('tumor.jpg'); % im=rgb2gray(x); im=x(:,:,1); [q r]=size(im); s=r/2; % for i=1:q % ...

11 years ago | 0

Solved


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

11 years ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

11 years ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

11 years ago

Answered
How to remove Index exceeds matrix dimensions error ?
Hi. Maybe your s isn't 102400 by 8 matrix. With s=rand(102400,8) didn't give any error: degree = 180; divisor_factor=32; ...

11 years ago | 0

| accepted

Answered
How to normalize given matrix in the range of [-11] ?
Hi. A=randi(100,[10 10 10]); % Between [0 1] A=(A-min(A(:)))./(max(A(:))-min(A(:))); A=2.*A -1;

11 years ago | 0

Answered
who to use string as input?
Hi. Try this: function anyFunction(anyString) length(anyString{1}) end

11 years ago | 0

| accepted

Solved


Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

11 years ago

Solved


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

11 years ago

Solved


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

11 years ago

Solved


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

11 years ago

Solved


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

11 years ago

Solved


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

11 years ago

Solved


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

11 years ago

Solved


Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

11 years ago

Load more