Community Profile

# Ammy

2018 이후 활성

배지보기

#### Content Feed

보기 기준

질문

How to find minimum of every two columns and rows?
Let A =randi(16,4); A = 14 11 16 16 15 2 16 8 3 5 3 13 15 9 16 3...

23일 전 | 답변 수: 2 | 0

### 2

답변

질문

How to resolve problem in for loop?
a=java.math.BigInteger(100) for i=1:a a*a; end Undefined function '_colonobj' for input arguments of type 'java.math.Big...

약 1달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 2달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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.

4달 전 | 답변 수: 2 | 0

### 2

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 2 | 0

### 2

답변

질문

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

4달 전 | 답변 수: 2 | 0

### 2

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

4달 전 | 답변 수: 2 | 0

### 2

답변

질문

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

4달 전 | 답변 수: 2 | 0

### 2

답변

질문

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

4달 전 | 답변 수: 2 | 0

### 2

답변

질문

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

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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]

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

5달 전 | 답변 수: 3 | 0

### 3

답변

질문

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?

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

5달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

6달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

6달 전 | 답변 수: 1 | 0

### 1

답변

질문

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

8달 전 | 답변 수: 3 | 0

### 3

답변

질문

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

8달 전 | 답변 수: 2 | 0

답변