社区资料

photo

Ammy


Active since 2018

Statistics

  • 感恩5级

查看徽章

内容提要

查看

Question


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

12 days ago | 1 answer | 0

1

answer

Question


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

13天前|2个答案|0

2

答案

Question


Graphs with stacked plot
数字;t = tiledlayout(3,1,'tilespacing','none');nexttile;情节(x,y1,x,y2);Xticks([])nexttile;情节(x,y2,x,y3);XTICK ...

14天前|1答案|0

1

answer

Question


如何恢复原始矩阵?
a = [1 2 3 2; 4 1 2 3; 3 4 3 2; 2 4 1];>> r = [1 3 4 2];>> b = a(r,:);>> c = b(:)';>> d = [1 0 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1];>> E ...

25天前|2个答案|0

2

答案

Question


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

25天前|2个答案|0

2

答案

Question


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

1个月前|1答案|0

1

answer

Question


如何将BigInteger转换为二进制?
导入java.math。*;>> a=BigInteger('12362534624362643243256346523462'); >> b=toString(a); >> dec2bin(b) Error using dec2bin...

1个月前|1答案|1

1

answer

Question


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

1个月前|2个答案|0

2

答案

Question


如何将字符串转换为行矢量?
a = 753;b = dec2bin(a);b ='1011110001'如何获得b作为行矢量[1 0 1 1 1 1 1 0 0 0 1]?

1个月前|3 answers | 0

3

答案

Question


如何删除额外的数字以减少向量的大小?
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...

1个月前|1答案|0

1

answer

Question


如何连接二进制字符串?
I have binary data 8192x8 char '00000010' '01101111' '00111001' '00111111' '11010110' '01000110...

1个月前|3 answers | 0

3

答案

Question


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

1个月前|1答案|0

1

answer

Question


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

2个月前|2个答案|0

2

答案

Question


如何更换循环?
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 ?

2个月前|1答案|0

1

answer

Question


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

2个月前|1答案|0

1

answer

Question


How to resolve the problem in for loop?
导入java.math。*;a = biginteger('12345678934');b = biginteger('10');对于i = 1:double(10)i = biginteger('i');...

2个月前|1答案|0

1

answer

Question


如何根据第二矩阵找到第一个矩阵的元素?
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 '...

2个月前|1答案|0

1

answer

Question


如何在“ Sym”格式的数字上应用功能?
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...

2个月前|1答案|0

1

answer

Question


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

4个月前|2个答案|0

2

答案

Question


如何解决循环中的问题?
a=java.math.BigInteger(100) for i=1:a a*a; end Undefined function '_colonobj' for input arguments of type 'java.math.Big...

4个月前|1答案|0

1

answer

Question


如何将原始矩阵返回?
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...

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

7 months ago | 1 answer | 0

1

answer

Question


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

7 months ago | 1 answer | 1

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.

7 months ago | 2 answers | 0

2

答案

Question


How to save the required output?
假设我们有两个文件夹A和B,都包含图像。令文件夹有6个图像:A1,A2,...,A6文件夹B有60张图像:B1 ...

7 months ago | 1 answer | 0

1

answer

Question


How to select every 10 images corresponding to one image?
假设我们有两个文件夹A和B,都包含图像。令文件夹有6个图像:A1,A2,...,A6文件夹B有60张图像:B1 ...

7 months ago | 1 answer | 0

1

answer

Question


如何将双环的输出作为矩阵保存?
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...

7 months ago | 1 answer | 0

1

answer

Question


How to unstructure the structure data?
我想在数据集中找到所有行的平均值。但是工作空间中的数据在以下构造中。让数据成为数据...

7 months ago | 1 answer | 0

1

answer

Question


How to select every 54th image in the folder?
假设我们有两个文件夹A和B,都包含图像。令文件夹A有54张图像:A1,A2,...,A54文件夹B有540张图像:...

7 months ago | 2 answers | 0

2

答案

Question


如何节省双循环的输出?
如果我有i = 1:n .... j = 1:m a = myfunction(...);端结束A是图像,我想保存所有a.s t ...

7 months ago | 2 answers | 0

2

答案

Load more