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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

Resuelto


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

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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 1

Respondida
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(:)];

casi 13 años hace | 1

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Cargar más