Community Profile

# harley

43 total contributions since 2013

View details...

Contributions in
View by

Question

finding certain points in data
hello, if I have a row of data say: x = 1, 1.4, 2, 2.2, 3, 3.7, 4..... where the corresponding y = 2, 3, 1, 6 ,5...

fast 5 Jahre ago | 1 answer | 0

### 1

Question

hi, i have a differential equation that im trying to solve in simulink. The equations is dx/dt = -(A*B*(x-C))/D. What block co...

fast 6 Jahre ago | 0 answers | 0

### 0

Question

ode solvers & loops for various values
hello i have shown part of a code below. The first 'Rh' value of 70 is used to find 'EMC' & 'Kx' and the 'Kx' is used in the od...

fast 6 Jahre ago | 2 answers | 0

### 2

Question

for loops and arrays
Hello, part of a script below. How can i write this without typing every in c(j-1,5). I am planning on expanding the array. T...

fast 6 Jahre ago | 1 answer | 0

### 1

Question

loops for different variables
hello i have part of a script below that i have stripped back, (there is also a function file that i have not included & a bunch...

etwa 6 Jahre ago | 1 answer | 0

### 1

Question

fourier series for function and period
hi, trying to calculate the fourier series expansion in the period -3<t<3 f(t)={2, -3<t<0; {0, 0<t<3. any help would be ...

mehr als 6 Jahre ago | 1 answer | 0

### 1

Question

roots of complex numbers
trying to find all possible roots of the following; [125/2(1-sqrt(3i))]^1/3 tried the below, but keep getting error; ...

mehr als 6 Jahre ago | 1 answer | 0

### 1

Question

complex number root solving
trying to use matlab to solve some complex numbers, as a basic example how does one command matlab to find all the roots of; ...

mehr als 6 Jahre ago | 1 answer | 0

### 1

Question

using roots function to find values
f(x) = 3x^3 – 5x^2 + 10. How do i find 'x' when y = 0, using roots function.

fast 7 Jahre ago | 1 answer | 0

### 1

Question

??? Subscripted assignment dimension mismatch
how do I fix this assignment error? lambdaMJ = 7.2; MJ_Flow = (30/60)*2; ...

fast 7 Jahre ago | 2 answers | 0

### 2

Question

how to find a mean across rows
i have a code that produces a matrix, i want it to find the mean across the rows rather than down each column. i tried the below...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

mean across rows and columns
i have a code that produces 10 x 5 matrix, i want it to find the mean across the rows rather than down each column. for a=(...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

storing values from loops
how do i store the values of MJ_V12, they are being overwritten in each loop. Should end up with a 41 x 100 matrix. i've tried ...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

horizontal bar graphs/ figures
how do i plot specific colours with a barh graph. i can plot specific colours for the first stacked bar graph but not for the s...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

bar type graph/ figure
i have some values that i want to graph on a figure. This is for traffic signals. example %Road 1 Phase Green...

fast 7 Jahre ago | 2 answers | 0

### 2

Question

display values in particular order
i have a code that displays the minimum value. I want to display the rest of the values from lowest to highest value, how do i d...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

PDF data analysis and comparison
i have some theoretical PDF's. I want Matlab to decide which one is the best fit for my experimental PDF. How would i do this. ...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

normal distribution from data
is there a more efficient way to derive a normal distribution. % Deriving Normal Distribution From the Data x=0:1:1...

fast 7 Jahre ago | 3 answers | 0

### 3

Question

smoothing plots from data
im trying to plot some data "smoothed" out. when i use the below code it is still un-smoothed. How do i improve the smoothing? ...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

controlling array data when calculating
im try to avoiding having a w = 0. how do i code this? a = 10; w = -a:(a/1000):a F = 2*sin(a*w)./w;

fast 7 Jahre ago | 3 answers | 0

### 3

Question

Error in Poisson's distribution.
have some example data, trying to use poisson's PDF, (this is a small part of the overall code) but keep getting a error of. Any...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

Bisection Method to find root
im trying to write code using the Bisection method to find the max of F(w) like a have with the cubic spline method, any help w...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

using end value in next iteration
want the Vo at the end of each loop to be used in the start of the next iteration, just can't get to work, I display Vn but its ...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

loop until condition met
im trying to create a loop until a certain condition exists by using the results at the end of each loop to calculate the next i...

fast 7 Jahre ago | 2 answers | 0

### 2

Question

array from matrix equations
i have a matrix that solves 4 unknowns, instead of writing Va1 = ....(see below) four times is there a more efficient way to do ...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

solving unknown in algebraic equations
trying to use matlab to solve the following for V2 & V3, how do i do this? All variables are known apart from V2 & V3. Q1 =...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

function handle error with matirx
i get the error below, any ideas where i've gone wrong? Also with the way i've wrote my D & L vectors will D(1) and the correspo...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

random number generation for known sum
i what do generate some 15 random numbers that sum for each separate value of say, 60 , 70, 40, 65. How would i go abouts this? ...

fast 7 Jahre ago | 2 answers | 0

### 2

Question

iterations while in loop
having trouble making this iterate for each increment of Vn, it goes straight to Vn = 30, i want it to also to calc a new Re, f,...

fast 7 Jahre ago | 1 answer | 0

### 1

Question

returning values for iterations
Partial code below. I want to use the Va calculated at the bottom as the Vo in the next iteration, how would i do this. The init...

fast 7 Jahre ago | 1 answer | 0