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

12년 초과 전 | 0

답변 있음
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>

12년 초과 전 | 0

| 수락됨

답변 있음
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)

12년 초과 전 | 0

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 1

답변 있음
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(:)];

12년 초과 전 | 1

답변 있음
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); ...

12년 초과 전 | 0

답변 있음
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 ...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 0

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

12년 초과 전 | 1

| 수락됨

답변 있음
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)

12년 초과 전 | 0

| 수락됨

답변 있음
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) =...

12년 초과 전 | 0

답변 있음
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 % ...

12년 초과 전 | 0

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

답변 있음
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; ...

12년 초과 전 | 0

| 수락됨

답변 있음
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;

12년 초과 전 | 0

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

12년 초과 전 | 0

| 수락됨

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

더 보기