![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/12942343_1527780126711_DEF.jpg)
Vasilis Chasiotis
Followers: 0 Following: 0
Feeds
已回答
How to explore off diagonal elements in matrices without avoiding the for loop?
A = randn(n,n); % a n-by-n matrix of random numbers idx = eye(n,n); % the identity matrix of order n if all( A(~idx) > K ) % c...
How to explore off diagonal elements in matrices without avoiding the for loop?
A = randn(n,n); % a n-by-n matrix of random numbers idx = eye(n,n); % the identity matrix of order n if all( A(~idx) > K ) % c...
4 years 前 | 0
提问
Take specific elements from each cell of a cell array
Hello! Let A be a 1x10 cell array. Each of the 10 cells of A are nxm matrices. Also, let an 1x10 vector x, that is, x=[ x1 x2 ....
4 years 前 | 1 个回答 | 0
1
个回答提问
Different number of for loops
I want my input to be a number at least 9 or 10, say n, and I need a code to create n number of for loops. I need to change the ...
4 years 前 | 2 个回答 | 0
2
个回答提问
Restricted integer compositions with fixed number of parts and different bounds for each part
There are functions from which restricted integer compositions with fixed number of parts can be obtained, like *colex*, *jdoric...
4 years 前 | 0 个回答 | 0
0
个回答提问
How to create permutations of multisets?
I have a vector with N=6 elements and q=3 elements symboled as 0, 1, 2. I want to create all vectors consisted of N=6 elements ...
5 years 前 | 1 个回答 | 0
1
个回答提问
Change a variable's value wherever exists
I have the following code: syms a x = a+1; a = 2; However, the value of x is equal to a+1. Because I put a=2, how can I ta...
5 years 前 | 1 个回答 | 0
1
个回答提问
Swap all the values in a vector
I have the vector x=[1 2 3 4 5 6 7 8] and I want to create another one in which I have swaped the elements as (17)(24)(38)(56), ...
5 years 前 | 1 个回答 | 0