Community Profile

photo

Ammy


Con actividad desde 2018

Estadísticas

  • Thankful Level 5

Ver insignias

Content Feed

Ver por

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 2 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

casi 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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

alrededor de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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 ?

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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.

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Cargar más