photo

Robert Mason


Active since 2016

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Merging adjacent cells in a cell array and applying rules to remove entries
I have a cell array with cells of different sizes, for instance: ([-2, -1], [1, -2]; [1, -2], [2]; [1, -2, -1], [1, 2]). I wo...

8 years ago | 3 answers | 0

3

answers

Question


Replacing elements of a matrix with vectors
I have a matrix of integers, for instance: [1 2; 3 4], and I would like to replace each integer with a, for instance: 1 by...

8 years ago | 1 answer | 0

1

answer

Question


Index issue with using a global variables that are vectors in a function
I have written a function in which two global variables, both vectors with 2 entries, are used: function TH=THETA(y, z); ...

8 years ago | 1 answer | 0

1

answer

Question


Failure of the Continue command in a for-loop
I cannot get the continue command to work in for-loops. For instance, with the code: q(1) = 1; q(2) = 2; q(3) = 3; ...

8 years ago | 2 answers | 0

2

answers

Question


Skipping part of an index in a for-loop
I have a set of data and a for-loop, for instance: d(1) = 1; d(2) = 2; d(3) = 3; for j= [1 3]; g = d(3)./(d + d...

8 years ago | 1 answer | 0

1

answer

Question


Automatically populating a vector with the output of a for-loop
I have some initial data and a for-loop that uses this data: d(1)=-0.3; q(1)=0.08; d(2)=0.4+0.1*i; q(2)=0.11; s=1; N =...

8 years ago | 1 answer | 0

1

answer

Question


Symbolic summation within a for-loop
I have a function that is dependent on two variables, f(j, k). I would like to create a loop that, for each j, sums the function...

8 years ago | 2 answers | 0

2

answers

Question


Defining a symbolic function in which one of the arguments is used to look up an entry of a vector, which is then used in the function.
I have defined several numbers and a vector as follows: d1=-0.3;d2=0.4; dv=[d1 d2]; I now attempt to define a function ...

8 years ago | 1 answer | 0

1

answer