Frage


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

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 5 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten