Feeds
질문
Find the maximum value in different vectors and from which vector is it?
I have the following vectors: v1 = [1 1 3 3 1] v2 = [2 2 1 1 2] v3 = [3 3 2 2 3] I want to compare each element of all the v...
대략 6년 전 | 답변 수: 1 | 0
1
답변질문
Change variable's names with one character?
Hi. Suppose I have these variables: a=1 b=2 c=3 And I want to change their names by adding the number assigned here: x = 1...
대략 6년 전 | 답변 수: 1 | 0
1
답변질문
Create a function and plot it
Hello I have the following function: f(x) = 1 + a/ 2.5 + x a= some value I would like to plot that function. I try to do it w...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
Split data into different arrays of different sizes?
Hi I have a huge vector of data and I would like to divide it into different groups according to a particular index so lets say ...
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
Generate a loop vector with certain probability?
Hi, I have this loop to generate a matrix of size d with the numbers 1,2,3,4 according to a certain frequency (fn...) and each t...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Generate poisson numbers which sum a certain value?
Hi I want to create a vector with numbers following a poisson distribution but at the same time the sum of these numbers should ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Randomly assign elements of one vector into different vectors?
Hello I have the next vector: v= [1 2 2 3 1 3 2 1 3 2 1 3 2 1 3 1 2 3 1 3] And I need to assign randomly 4 elements of t...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Delete max value of a cell array?
Suppose I have the next cell array: array= {[0.7359]} {[0.7360]} {[1.4726]} {[1.8402]} {[1.4723]} {[0]} {...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Loop to solve ODE45 multiple times?
Hello I made this loop to try to solve this system of diferential equations with different initial conditions but im not sure if...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Save data from a for loop with different dimensions?
Hello I'm trying to store the data of the next loop by vectorizing each iteration: lambda = 2; distri= poissrnd(lambda,1...
7년 초과 전 | 답변 수: 1 | 1
