Community Profile

photo

Ammy


2018 이후 활성

Statistics

  • Thankful Level 5

배지보기

Content Feed

보기 기준

질문


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

3달 전 | 답변 수: 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 ...

3달 전 | 답변 수: 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...

3달 전 | 답변 수: 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...

3달 전 | 답변 수: 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 ...

3달 전 | 답변 수: 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)...

4달 전 | 답변 수: 1 | 0

1

답변

질문


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

4달 전 | 답변 수: 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' ...

4달 전 | 답변 수: 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]?

4달 전 | 답변 수: 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...

4달 전 | 답변 수: 1 | 0

1

답변

질문


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

4달 전 | 답변 수: 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...

4달 전 | 답변 수: 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...

4달 전 | 답변 수: 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 ?

4달 전 | 답변 수: 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...

4달 전 | 답변 수: 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'); ...

4달 전 | 답변 수: 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 '...

4달 전 | 답변 수: 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...

4달 전 | 답변 수: 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...

6달 전 | 답변 수: 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...

7달 전 | 답변 수: 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...

7달 전 | 답변 수: 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...

9달 전 | 답변 수: 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 ...

9달 전 | 답변 수: 1 | 1

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.

9달 전 | 답변 수: 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...

9달 전 | 답변 수: 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...

9달 전 | 답변 수: 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...

9달 전 | 답변 수: 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...

9달 전 | 답변 수: 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:...

9달 전 | 답변 수: 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...

9달 전 | 답변 수: 2 | 0

2

답변

더로드