Feeds
提问
matrix reshaping
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6]; ...
13 years 前 | 3 个回答 | 0
3
个回答提问
matrix dividing
If I have a big matrix like this: A=ones(1,450000). How can I divide it in 300 equal parts (1, 1500) and multiple these 300 part...
13 years 前 | 1 个回答 | 0
1
个回答提问
matrix and binary bits
I have a matrix that I use it like an index, for example: A=[1 3 2 4 1 3] which points to a matrix which represents binary bits ...
13 years 前 | 3 个回答 | 0
3
个回答提问
Creating matrix from a for loop
I have this 'for loop' (where A a matrix from my program): for m=symbols(1:1000) d1=abs(m-A); [C,I]=min(d1); k=A(I);...
13 years 前 | 1 个回答 | 0
1
个回答提问
Nesting for loops and if statements in MATLAB
I have a program in MATLAB that I use two for loops e.g.: for ....end for...end. In the 2nd 'for loop' I use an if statemen...
13 years 前 | 2 个回答 | 0
2
个回答提问
Matlab poisson random numbers
Hello, I use in my code the Matlab function 'poissrnd' to produce random numbers, for example: A=poissrnd(100,1,20) to produ...
13 years 前 | 2 个回答 | 0
2
个回答提问
Matlab delete values
Hello, I have a table: A=[2 5 5 0] and I use this function to sort it in descend order: [C, Index] = sort(A) and the result:...
13 years 前 | 2 个回答 | 1
2
个回答提问
Arrays sorting
Hello, I have 2 arrays: A=[3 5 11] and B=[2 3 0]. I multiply these 2 arrays and I produce a third: C=times(A,B)=[6 15 0]. I s...
13 years 前 | 1 个回答 | 0
1
个回答提问
Matlab Minimum
Hello, If I have an array for example: A=[10 11 12 1 8 9 1 3 5] and I use the '[C,I]=min' function to find the minimum value ...
13 years 前 | 3 个回答 | 0
3
个回答提问
Array selection
Hello, I have one array, for example: A=[10 6 8 9 11] and I take the min of it which is number 6. How can I select only the t...
13 years 前 | 1 个回答 | 0
1
个回答提问
Array minimum
Hello, I have a table, e.g.: 999 999 1 999 4 5 5 0 8 9 and I use the matlab function: [C,I] = mi...
13 years 前 | 1 个回答 | 0
1
个回答提问
array assignment question
I have this code: a = zeros(4, 5); b = ones(2, 4); [rows columns] = size(b); % Define upper left of where I want to pla...
13 years 前 | 3 个回答 | 0
3
个回答提问
Working with arrays in a for loop
I have 2 variables that take their values from a 'for' loop. How can I put the values of those 2 variables into an array? For ex...
13 years 前 | 3 个回答 | 0