提问


Sum the component of a matrix till a certain value
Hi, given the vector matrix M= [2 4 4 5 6 16 8 9 21 3 5 8 12 34 5 6 8; 2 4 2 5 7...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Create a random array with specified conditions
Hi, I would like to create a random array S where the random generation has to consider that we want to obtain a couple of num...

5 years 前 | 1 个回答 | 1

1

个回答

提问


Sum the component of a vector till a certain value
Hi, given the vector G= [2 4 4 5 6 16 8 9 21 3 5 8 12 34 5 6 8] I want to obtain a new vector S with the same component but cu...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Find the position of a minimum inside an array
Given the following vector V= [100 200 390 180 500 600 788 30 900 450 670 540 340 670 540 609 340 540 650 450 ] I want to find...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Sum the values of an matrix
Hi , given a matrix SU = [1 0 1 0 1 0 1 1 1 0 1 0 0; 0 0 0 1 1 0 0 1 0 1 0 0 0; 1 1 1 0 0 0 0 0 1 1 1 0 0] ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Create a random sequence with specified elements
Hi Given the following vector Q= [25 30 35 30 40 20 25 30] I want to create a random vector S that contain the Element 1, ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Create matrix of vector from 3 differents cell array
Hi, I have the followinf three cell arrays a = {[1 0 1 0 1 0 0 0 1 1] , [1 1 1 0 0 0 1 0 1 0 1], [1 0 1 0 1 0 1 1 1 1 0 0 0 0...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Create an array whose values depend on another array
If I have an array like C = [1 2 3 4 5 2 4 5 6 7 6 2 5 7 8] I would like to obtain another array where the value of : 1,4,7 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Fill an array in a for loop, with change of dimension
Hi, I have the following code and I have to fill the array T with y every loop. y=zeros(); t=0; nraw=420 for kk = 1:nraw fo...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Array exceeds maximum array size preference
Hi, given the following v = [1 2 3 4 1 1 1 1 1 2 3 2]; P = unique(perms(v),'rows'); I've obtained Error using zeros Reques...

5 years 前 | 2 个回答 | 0

2

个回答

提问


Fill an array after a for loop
Hi, given the following code v = [1 2 3 4 1]; P = unique(perms(v),'rows'); nraw = size (P,1); G=zeros() for i=1:nraw ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Convert a vector in Character array after a for loop
Hi, given the following code n=length(x) f = zeros(1,n) for i = 1:n if x(i) == 1 f(1,i) = 22; elseif x(i)==2 f(1,i) = 2...

5 years 前 | 2 个回答 | 0

2

个回答

提问


Assigne values to elements of an array
Hi, I have a vector v = [1 2 3 4 1 1 3 4] and I want to assign attributes to each of the value of the vector. It means that ...

5 years 前 | 0 个回答 | 0

0

个回答

提问


Assigne Values/Attribute to elements of an array
Hi, I have a vector v = [1 2 3 4 5] and I want to assign attributes to each of the value of the vector. It means that every ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


All possible permutation of a given vector.
Given a vector, e.g [1 2 3 4 1], I would like to obtain all the possible permutations with NO REPETITION and NO ROTATION. With...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Create an array from the input of a MATLAB FUNCTION BLOCK
Hi, I would like to create an array that contain the values of the input u that enter the MATLAB FUNCTION BLOCK Trough the...

5 years 前 | 1 个回答 | 0

1

个回答

提问


GET ATTRIBUTE VALUES FROM SIMEVENT (SIMULINK)
Hi, I would like to know how it's possible to create an array that is able to contain the ATTRIBUTE VALUES of the entities tha...

5 years 前 | 0 个回答 | 0

0

个回答

提问


TO WORKSPACE FROM MATLAB
Hi, I have a vector V=[1 2 2 1 2 1 2 1] in the workspace and I have to transfer in Simulink as a signal. By using the bl...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Matlab code generation. Iterate cycle on a vector.
Hi to everybody, I have a given vector with the following value V = [ 3 1 3 1 2 1 3] and the task is to write a code that is...

5 years 前 | 0 个回答 | 0

0

个回答

提问


Model machine Set up time in SimEvent
Hi, I'm working on SimEvent in order to reproduce the behavior of a manufacturing plant. Due to the complexity I'm actually bl...

5 years 前 | 0 个回答 | 0

0

个回答