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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 1 个回答 | 1
