Community Profile

# Ammy

2018 年からアクティブ

バッジを表示

#### Content Feed

How to use sortrows command in java.math.BigInteger?
Let A be BigInteger array (mx2) I want to apply sortrows on A, but it is not compatible with it . import java.math.BigInte...

### 1

How to interchange position of a matrix?
A = [3 1 2]; B = [2 3 1]; %%%%% X = [2 1 3]; %%% I want to interchange position of elements in X using A and B. => interch...

2ヶ月 前 | 2 件の回答 | 0

### 2

How to reverse the operation?
Let A = [1 2 5 4 3]; B = [ 2 5 1]; AA = A; for i = 1:numel(B) AA([i B(i)]) = AA([B(i) i]) end Is there reverse way i.e...

8ヶ月 前 | 1 件の回答 | 0

### 1

How to change x-axis ticks labels in stackedplot?
h = stackedplot(rand(6,3)); I want to set x-axis ticks according to my own defined set i.e., instead of 1:6, I want to replace ...

8ヶ月 前 | 2 件の回答 | 0

### 2

Graphs with stacked plot
figure; t=tiledlayout(3,1,'TileSpacing','none'); nexttile; plot(x,y1,x,y2); xticks([]) nexttile; plot(x,y2,x,y3); xtick...

8ヶ月 前 | 1 件の回答 | 0

### 1

How to get back the original matrix?
A=[1 2 3 2;4 1 2 3;3 4 3 2;2 4 1 1]; >> R=[1 3 4 2]; >> B=A(R,:); >> C=B(:)'; >> D=[1 0 0 1 0 1 0 1 0 1 0 0 1 1 0 1]; >> E...

8ヶ月 前 | 2 件の回答 | 0

### 2

How to resolve issue while dealing with larger matrices?
A=randi(16,[4,4]); B=A(:)'; P=randi(16,[1 4]); V=randi(16,[1 4]); B(P)=V; % replace entries at position P with values in V ...

8ヶ月 前 | 2 件の回答 | 0

### 2

How to generate a sequence in MATLAB?
Let m be the size of a sequence, where m is even, How to generate a sequence A = [ 1 , m/2, m, 2, (m/2 -1), (m/2 +1)...

9ヶ月 前 | 1 件の回答 | 0

### 1

How to convert BigInteger into binary?
import java.math.*; >> a=BigInteger('12362534624362643243256346523462'); >> b=toString(a); >> dec2bin(b) Error using dec2bin...

9ヶ月 前 | 1 件の回答 | 1

### 1

How to apply dec2bin to char array?
I have a data as char a ='1234567'; dec2bin(a) gives 6×6 char array '110001' '110010' '110011' '110100' ...

9ヶ月 前 | 2 件の回答 | 0

### 2

How to convert a string into row vector?
a = 753; b= dec2bin(a); b= '1011110001' How can I obtain b as a row vector [1 0 1 1 1 1 0 0 0 1]?

9ヶ月 前 | 3 件の回答 | 0

### 3

How to remove extra numbers to reduce size of vector?
The following code removes extra number from the start of vector A if the size is not divisible by 3, I want to remove extra n...

9ヶ月 前 | 1 件の回答 | 0

### 1

How to concatenate binary strings?
I have binary data 8192x8 char '00000010' '01101111' '00111001' '00111111' '11010110' '01000110...

9ヶ月 前 | 3 件の回答 | 0

### 3

How to apply dec2bin on a string to get a single output?
I want to convert decimal into binary . Since my data is in string like a = '565152197906911714131090579040116886954248101558...

9ヶ月 前 | 1 件の回答 | 0

### 1

How to store the output?
How to store the output of the following for loop ? import java.math.*; a = BigInteger('12345678'); c = Biginteger('674362557...

9ヶ月 前 | 2 件の回答 | 0

### 2

How to replace for loop ?
function [a] =my_function(b,c) a = b+c; end for i=1:10 a = my_function(a,c) end How to replace for loop ?

9ヶ月 前 | 1 件の回答 | 0

### 1

How to find double output?
import java.math.*; >> p=BigInteger('11'); >> m=BigInteger('2'); >> [A,B]=m.gcd(p); Error using java.math.BigInteger/gcd J...

9ヶ月 前 | 1 件の回答 | 0

### 1

How to resolve the problem in for loop?
import java.math.*; A = BigInteger('12345678934'); B = BigInteger('10'); for i =1:double(10) i = BigInteger('i'); ...

9ヶ月 前 | 1 件の回答 | 0

### 1

How to find elements of first matrix based on second matrix?
I have two matrices A and B A = [1 2 3 4 5 6 7 8 9 10]; B = [1 0 0 1 0 1 0 1 1 1]; How to find entries of A coresponsing to '...

9ヶ月 前 | 1 件の回答 | 0

### 1

How to apply a function on a number which is in 'sym' format?
p = sym('2')^100 - 15; results = p_inverse(p-1, p); where the function p_inverse is defined as; function ia = p_inverse(a, p...

9ヶ月 前 | 1 件の回答 | 0

### 1

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

11ヶ月 前 | 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...

12ヶ月 前 | 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...

12ヶ月 前 | 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...

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

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

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

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

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

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