photo

Robert Mason


Aktiv seit 2016

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 8 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort