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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 1

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 1

| accettato

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

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

oltre 11 anni fa | 0

| accettato

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

oltre 11 anni fa | 0

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

oltre 11 anni fa | 0

| accettato

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Carica altro