Community Profile

photo

Ammy


Active since 2018

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


How to get the original matrix back?
clc;clear all;close all A=reshape (1:16 ,4,4); % 4x4 matrix B1 = A(1:2:end, 1:2:end); B2 = A(1:2:end, 2:2:end); B3= A(2:2:en...

8 hours ago | 1 answer | 0

1

answer

Question


How to plot three subplots on the same axis?
if true % figure(1) x1=subplot(2,1,1); stairs(DDr.Var1,DDr.Var2); legend('Station 1 LHS') ylabel('Cycle time') title('S...

2 months ago | 1 answer | 0

1

answer

Question


How to reduce space between axis labels and axis ticks?
x=1:54; plot(x,y1,'k-+',x,y2,'b-*') xlim([1 54] xticklabel_rotate([1:54],90,D xlabel('Sample 1') ylabel('Sample 2') How ...

2 months ago | 1 answer | 0

1

answer

Question


How to reduce space between ylabel and y ticks in Matlab plot?
How to reduce the space between y-label and y-ticks, in other words how to closer the y-label to y-axis.

2 months ago | 2 answers | 0

2

answers

Question


How to save the required output?
Suppose we have two folders A and B , both contain images. Let folder A have 6 images:a1,a2,...,a6 folder B have 60 images: b1...

3 months ago | 1 answer | 0

1

answer

Question


How to select every 10 images corresponding to one image?
Suppose we have two folders A and B , both contain images. Let folder A have 6 images:a1,a2,...,a6 folder B have 60 images: b1...

3 months ago | 1 answer | 0

1

answer

Question


How to save output of double loop as a matrix?
for i=1:m for j=1:n A=myfunction(...) end end where the output A is the square matrix. How to save output A for each ite...

3 months ago | 1 answer | 0

1

answer

Question


How to unstructure the structure data?
I want to find the mean of all rows in the data set . But the data in the workspace is in the following formate. let A be data...

3 months ago | 1 answer | 0

1

answer

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

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

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

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

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

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

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

3 months ago | 2 answers | 0

2

answers

Question


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

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

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

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

4 months 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]

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

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

4 months 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?

4 months ago | 1 answer | 0

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

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

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

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

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

7 months ago | 2 answers | 0

2

answers

Question


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

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

7 months ago | 1 answer | 0

1

answer

Load more