Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 1

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 2 answers | 0

2

answers

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 2 answers | 0

2

answers

Question


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

4 years ago | 0 answers | 0

0

answers

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 0 answers | 0

0

answers

Question


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

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 0 answers | 0

0

answers

Question


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

4 years ago | 0 answers | 0

0

answers