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

13年弱 前 | 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>

13年弱 前 | 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)

13年弱 前 | 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...

13年弱 前

解決済み


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

13年弱 前

解決済み


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年弱 前

回答済み
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...

13年弱 前 | 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...

13年弱 前 | 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(:)];

13年弱 前 | 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); ...

13年弱 前 | 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 ...

13年弱 前 | 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...

13年弱 前 | 0

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

13年弱 前 | 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)

13年弱 前 | 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) =...

13年弱 前 | 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 % ...

13年弱 前 | 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...

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

回答済み
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; ...

13年弱 前 | 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;

13年弱 前 | 0

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

13年弱 前 | 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]; ...

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

解決済み


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

13年弱 前

さらに読み込む