Question

How to find uaci by fixing one image and changing the other?

The code for uaci for two images A and B. uaci= sum( abs( double(A(:)) - double(B(:)) ) ) / num_of_pix / largest_allowed_val; ...

11 months ago | 1 answer | 0

Question

How to apply multiple parameters function on all the matrices in the folder?

A=randperm(16); A=reshape(A,4,4); function [B]=fun(A,a,b,c) B= a.*A+b.*A+c.*A end vals = [1, 2,3 6,1,4 7,3,5] ; [m,n] ...

11 months ago | 1 answer | 0

Question

How to save multiple output?

a =randperm(18); b=reshape(a,9,2); vals=b; [m,n] =size(vals) ; for i = 1:m [A,x,y]=myfunction(I,vals(i,1), vals(i,2)); ...

11 months ago | 2 answers | 0

Question

How to randomly change element of matrix?

I have an n×n matrix. I want to randomly change the element of A at random position. The element of matrix can be from 0 to 1...

11 months ago | 2 answers | 0

Question

How to find function for many parameters?

let A=randperm(16); A=reshape(A,4,4); I have the following function function [B]=fun(A,a,b,c) B= a.*A+b.*A+c.*A end No...

11 months ago | 2 answers | 0

Question

Can I open .mlx file in MATLAB 2013a?

How can I open .mlx file in MATLAB 2013a.

11 months ago | 1 answer | 0

Question

How to select specific entries of a matrix?

How to select elements of matrix at the following rows and columns 1,4,7,10,13,16,... In other words, select elements of matr...

12 months ago | 1 answer | 0

Question

How to find particular elements of matrix?

A=reshape(1:36,6,6); How to select the following elements of matrix 7,25, 2,14,20,32 9,27 10,28 5,17,23,35 12,30 these c...

12 months ago | 1 answer | 0

Question

How to get back the original matrix with indices of matrix?

Let A=reshape (1:16 ,4,4); B1 = A(1:2:end, 1:2:end); B2 = A(1:2:end, 2:2:end); B3= A(2:2:end, 1:2:end); B4 = A(2:2:end, 2:...

12 months ago | 1 answer | 0

Question

How to concatenate two matrices?

I have two matrices e.g., A=[1 2;3 4] B=[5 6;7 8] how to concatenate A and B such that C=[1 2;5 6;3 4;7 8]

12 months ago | 1 answer | 0

Question

How to select specific entries of a matrix?

Let the matrix A be A=[a_11 a_12 a_13 a_14;a_21 a_22 a_23 a_24;a_31 a_32 a_33 a_34; a_41 a_42 a_43 a_44]; how to select the fo...

12 months ago | 1 answer | 0

Question

What is the alternative function for evalin?

I want to improve the performance of my function. Avoid functions such as eval, evalc, evalin, and feval(fname). Use the funct...

12 months ago | 3 answers | 0

Question

Is there built in function for the ABC (Artificial Bee Colony) algorithm?

Is there any built-in function for the artificial bee colony algorithm in MATLAB?

12 months ago | 1 answer | 1

Question

How to partition matrix?

I have four matrices of same order A,B,C,D I combined them in one as E=[A B;C D]; Now how can I get back A,B,C,D with the hel...

1 year ago | 1 answer | 0

Question

How to define an objective function that maximize one thing and minimize the other at the same time?

I want to define an objective function that maximize the determinant and minimize the rank at the same time. A=rand(5); B=rand...

1 year ago | 1 answer | 0

Question

How to maximize determinant of a matrix?

I want to apply ABC OPTIMIZATION algorithm to maximize determinant of a matrix. I have my matrix in the form X=A(nxn) +k.*B(n...

1 year ago | 1 answer | 0

Question

How to make the code efficient?

I have made the following code . x=[0:n-1]; y=[0:n-1]; k = 0; for i=1:n for j=1:n if rem(((y(j))^2)-((x(i))^3...

1 year ago | 3 answers | 0

Question

how to arrange x-coordinate w.r.t y-coordinates?

I have a pair of coordinates (x,y) , I arranged it in increasing order of y by using sortrows(A,2) % A is matrix with first c...

1 year ago | 2 answers | 0

Question

How to run MATLAB code in Mathematica?

Is there any way to run MATLAB code in Mathematica?

1 year ago | 1 answer | 0

Question

How to remove both leading and trailing zeros from a binary string?

Let A=[00000001111; 00000110010; 10111011100; 00001000110; 11111010000; 00000001010] I want to remove zeroes from both left a...

1 year ago | 1 answer | 0

Question

How to find x-coordinate of the curve If y-coordinate is given?

disp('y^2 = x^3 + 14 mod 17') y=0:16 for i=1:17 left_side = mod(y(i).^2,17); right_side = mod(x.^3+14,17; end If I...

1 year ago | 2 answers | 0

Question

How to save output?

x=[0:n-1]; y=[0:n-1]; figure for i=1:5 for j=1:5 if rem(((y(j))^2)-((x(i))^3)-2*(x(i))-3,5)==0 plo...

1 year ago | 1 answer | 0

Question

How can I find the time difference between each consecutive rows?

I have a column in which date and time is mentioned, I want to find the time difference between every consective rows . Also ho...

4 years ago | 1 answer | 0

Question

How to solve problem with particle swarm optimization?

I want to define an objective function (any function e.g. ax+b) in addition to error function (e.g. mean square error) with part...

4 years ago | 1 answer | 0

Question

Artificial neural network with particle swarm optimization ?

I want to train artificial neural network with particle swarm optimization. with an error function and an objective function in ...

4 years ago | 0 answers | 0

Question

How to optimize a function?

f(x)=x^2+2x-3 x belong to [0,20] i- How can I optimize the function in matlab?

4 years ago | 1 answer | 0

Question

How do we optimize weight of feed forward artificial neural network with particle swarm optimization?

There are many links related to my particle swarm optimization , but I am unable to understand those for my problem. I have 3 i...

4 years ago | 0 answers | 0

Question

How to generate all the 3 by 3 matrices ?

I have to generate the matrices based on the following conditions A=[a b c;d e f;g h i] How can I generate all the possibl...

4 years ago | 3 answers | 0

Question

How to filter rows with respect to specific entry?

I have thousands of rows and I want to filter those rows in which the entry at third position is three For example A=[1 2 ...

4 years ago | 1 answer | 0

Question

How to find the position of specific entry in a Matrix?

I have a matrix like A=[3 2 1;3 1 2;2 3 1]; I want to find the position of 2 in each row I need 1 2 2 3 3 1...

4 years ago | 1 answer | 0