photo

Phoebe


Aktiv seit 2014

Followers: 0   Following: 0

Nachricht

Statistik

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Collect values into an array
I have the following within my code : while time<tfinal for np = 1 : particleno %Run Function to calculate g...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to work out time from defined time steps in code on plot??
Hi, I have attached my code and relevant function files. I have a function that runs if the integer value of the time/diagste...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to store values from a function file into an array?
If I have the following from a subroutine in my code, for counter = 1 : diagcounter [M]=xtMean(Xtcounter, counter); ...

fast 11 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Finding the mean of a matrix row? Get error "Subscript indices must either be real positive integers or logicals."
If I have the following matrix as an output from my code; Xtcounter = 0 4 4 4 0 0 4 4 ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Doing a plot within a FOR LOOP
I want to plot all values of B for changing i from following code; clear for i = 0.04 : 0.01 : 0.06 B = -20000 + 57...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Matlab Error "Attempted to access -- ; index out of bounds because numel--=???.
If my code looks like the following; time=0; %Initialise time particleno=9 dt=0.01; tfinal=40; diagstep=10; ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to truncate all the decimal places??
I am working on a code that loops over time and have been told that I am at this time "rounding the time to the nearest whole nu...

fast 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Values not entering IF loop for unknown reason!
Hi I am really struggling with the following, I have code that loops over a time interval, within this I have an if statement fr...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


WHY do i get Error "Undefined function or variable"
As part of my code i run a while loop over a period of time defined and within it have this if loop which produces the array for...

fast 11 Jahre vor | 2 Antworten | 0

2

Antworten