Question

how to find all possible path between 2 nodes

knowing the connectivity between nodes, how can i find the possible path between 2 nodes?

meer dan 2 jaar ago | 2 answers | 0

Question

how to select neighbouring 5 pixels of an image

I wanted to take one pixel from an image say im(x,y) then take the neighbouring 5 pixels of position im(x,y) find the maximum ...

meer dan 2 jaar ago | 1 answer | 0

Question

size of video file and audio file

how to find size of video file and audio filesize of video file and audio file? i saw for audio file we can use siz = wavread...

meer dan 2 jaar ago | 1 answer | 0

Question

find the shortest path

i have 2 set of coordinates S1-S25 (set 1) and D1-D10 (set2) i have connection between coordinates my start points are from se...

bijna 3 jaar ago | 3 answers | 0

Question

draw multiple lines based on coordinates

P1 P2 P2 P1,P3 P3 P2 i have 3 points P1, P2, P3 the connection between points is given above. How to draw lines based on th...

bijna 3 jaar ago | 1 answer | 0

Question

create a cell array with incrementing values

how to create a cell with values like a1 a2 a3 a4 a5 ........ a25 i need to get the above values into a row cell array and col...

bijna 3 jaar ago | 1 answer | 0

Question

concatenate values from matrix and cell array

i have a matrix and a cell array mtric = 1 2 3 4 5 6 7 8 9 cell_array = aa bb cc dd ee ff gg hh ii i wanted to combi...

bijna 3 jaar ago | 2 answers | 0

Question

split a rectangular matrix

i have a matrix as input = [1 0 0 0; 0 1 0 0; 0 0 1 0]; how can i split a the input matrix as output1 = [1 0 0 0; 0 0 0 0; 0 ...

bijna 3 jaar ago | 1 answer | 0

Question

create custom filter to image

create custom filter using mean and covariance

bijna 3 jaar ago | 1 answer | 0

Question

shortest path between 2 set of coordinates

I have 2 set of coordinates --> set_1 and destination If i select a cordinate in set_1 and destination (eg: from set_1 [10.5, 4...

bijna 3 jaar ago | 2 answers | 0

Question

plot coordinates in the center of grid

xy = [ 11.2871990000000 75.8008150000000 11.2826320000000 75.8033060000000 11.2648170000000 75.8115220000000 11.287192000000...

bijna 3 jaar ago | 1 answer | 0

Question

how to get back numerical value

V = [-0.00153846153846154; 0; -0.000769230769230769; -0.0126923076923077; 0.00384615384615385]; M = dec2bin(typecast(double(V),...

bijna 3 jaar ago | 1 answer | 0

Question

get common position in cell array and replace with specific values

idx = [ 3 6 7 ] ; ids = [ 2 3 5 6 7 ] ; i have a cell of size 1 x 8 Initially all values in cell_array of size 1 x 8 is...

bijna 3 jaar ago | 1 answer | 0

Question

split a diagonal matrix

v = [2 1 4]; D = diag(v) Having a diagonal matrix, i wanted to split the diagonal matrix as below M1 = [ 2 0 0 ...

bijna 3 jaar ago | 2 answers | 0

Question

retrieve binary data back

I have a binary data as 00 10 11 01 10 11 11 01 I need to replace this data as if 00 = 0 01 = 1 10 or 11 = * if i get a ...

bijna 3 jaar ago | 3 answers | 0

Question

create a new matrix from a vector

create a new matrix from v = [1 1 1 2 2 2 3 3 4]; u=unique(v); R=arrayfun(@(x)v==u(x),1:numel(u),'un',0); M=+vertcat(R{:}) ...

bijna 3 jaar ago | 1 answer | 0

Question

create vector based on string data

cell_array = { 'FA.EA'; 'FA.EB'; 'FA.EC'; 'FA.EA'; 'FA.EB'; 'FB.EC'; 'FB.EA'; 'FB.EB'; 'FC.EC'; 'FC.ED'; 'FC.EA'; 'F...

bijna 3 jaar ago | 2 answers | 0

Question

hide numerical values in image

how to hide a matrix into an image and retrieve it. i used the lsb code from the link https://in.mathworks.com/matlabcentral/...

bijna 3 jaar ago | 1 answer | 0

Question

how to hide 2 images as same size of cover image

i have 3 gray images g1, g2 and g3 of size 512 x 512. I wanted to hide g2 and g2 in g1 to get watermarked image w1 using any m...

bijna 3 jaar ago | 1 answer | 0

Answered

PCA in Matlab reduce dimensionality

[coeff, score] = pca(ingr); requiredResult = score(:,1:2); or if you want to change coeff to 13 x 2 matrix, you'll have to us...

PCA in Matlab reduce dimensionality

[coeff, score] = pca(ingr); requiredResult = score(:,1:2); or if you want to change coeff to 13 x 2 matrix, you'll have to us...

bijna 3 jaar ago | 0

| accepted

Answered

How to train ann with multiple input data

% Create a network (i have used feed-forward backpropagation) net = newff(TrainFeatures, Trainlabels, num_of_hidden_Neurons); ...

How to train ann with multiple input data

% Create a network (i have used feed-forward backpropagation) net = newff(TrainFeatures, Trainlabels, num_of_hidden_Neurons); ...

bijna 3 jaar ago | 0

| accepted

Question

what does the L-shaped bracket mean?

N1 = N2 = 4 xi = ith pixel of 4 x 4 block What does the 'L - shaped bracket' mean? How to write code for alpha and beta?

bijna 3 jaar ago | 2 answers | 0

Question

get grayImage from bitImage

% Compute mean in 4-by-4 blocks kernel = ones(4); meanImage = conv2(double(grayImage), kernel, 'same') / numel(kernel); % Com...

bijna 3 jaar ago | 1 answer | 0

Question

convert image to bitmap map image without using for loop

Partition an image into 4 × 4 pixel blocks and compute average for the block N1 = N2 = 4 xi = ith pixel now replace the...

bijna 3 jaar ago | 1 answer | 0

Question

write statement without using for loop

how to write this statement without using for loop

bijna 3 jaar ago | 2 answers | 0

Question

create a matrix with numbers from vector

i have a vector as v = [ 1 1 1 2 2 2 3 3 4] i wanted to create a new matrix as M = [ 1 1 1 0 0 0 0 0 0; 0 0 0 1 1 1 0 0 ...

bijna 3 jaar ago | 3 answers | 0

Question

How to get the intersecting coordinates of a binary image?

is there any method to get the coordinate points of the intersecting positions from this binary image and plot it in a graph...

bijna 3 jaar ago | 1 answer | 0

Question

How to add limit condition to existing code

How to add lim h ->0 condition to the below code. How is tril, toeplitz in code related to the above equation? How to edit ...

bijna 3 jaar ago | 2 answers | 0

Question

Segment yellow and white colour lines

How to get the get only the yellow and white lines from an image.

bijna 3 jaar ago | 1 answer | 0

Question

get 2 set of random coordinates

How to plot as above randomly with two colors I have now given xy = [2.5 4.5; 3.5 4.5; 4.5 4.5; 4.5 2.5; 3.5 3.5]; ...

bijna 3 jaar ago | 1 answer | 0