Question


How to select every 54th image in the folder?
Suppose we have two folders A and B , both contain images. Let folder A have 54 images:a1,a2,...,a54 folder B have 540 images:...

mer än 2 år ago | 2 answers | 0

2

answers

Question


How to save output of double loop?
If I have for i=1:n .... for j=1:m A=myfunction(...); end end The resultant A's are images, I want to save all A.s in t...

mer än 2 år ago | 2 answers | 0

2

answers

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 2 answers | 0

2

answers

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

mer än 2 år ago | 2 answers | 0

2

answers

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

mer än 2 år ago | 2 answers | 0

2

answers

Question


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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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]

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 3 answers | 0

3

answers

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?

mer än 2 år ago | 1 answer | 1

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

mer än 2 år ago | 1 answer | 0

1

answer

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

nästan 3 år ago | 3 answers | 0

3

answers

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

nästan 3 år ago | 2 answers | 0

2

answers

Question


How to run MATLAB code in Mathematica?
Is there any way to run MATLAB code in Mathematica?

nästan 3 år ago | 1 answer | 0

1

answer

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

nästan 3 år ago | 1 answer | 0

1

answer

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

ungefär 3 år ago | 2 answers | 0

2

answers

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

ungefär 3 år ago | 1 answer | 0

1

answer

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

mer än 5 år ago | 2 answers | 0

2

answers

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

nästan 6 år ago | 1 answer | 0

1

answer

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

nästan 6 år ago | 0 answers | 0

0

answers

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?

nästan 6 år ago | 1 answer | 0

1

answer

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

nästan 6 år ago | 0 answers | 0

0

answers

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

nästan 6 år ago | 3 answers | 0

3

answers

Load more