Question

Power Spectral density of function with an offset

I am trying to compute the power spectral density of 2 functions. They are similar in terms of the magnitude of their fluctuatio...

2 months ago | 1 answer | 0

Question

Different size error bar caps

I wish to make a bar chart with 5 bars with error bars on only two of these bars. My current code is bounds=categorical({'aa','...

2 months ago | 1 answer | 0

Question

Changing transparency of individual bars in bar

I am trying to plot a 2D bar plot where I want to be able to control the transparency of individual bars. My code is as follows ...

2 months ago | 1 answer | 0

Question

Fminunc Stopping Critera beyond StepTol and FunTol

I have a function whos input is a 83 element vector and whos output is a 8x8 matrix. I am tryin to use fminunc to get my output ...

3 months ago | 0 answers | 0

Question

Solving Matrix functions with a function

There may be no easy answer to this question but I thought I should try. I have a function, call it f(x), where x is a vector of...

3 months ago | 1 answer | 0

Question

Solving an ODE with time dependent term

I want to solve the ODE y'(t)=A(t)y(t)+C, where A(t) is a prespecified vector. So I have a time span [0,10] and I want to solve ...

7 months ago | 1 answer | 0

Question

Using Read Table with a predefined Table size

Hi there, I am trying to read data into a table using MATLAB. However the number of columns is not consistent in each row, i.e...

11 months ago | 2 answers | 0

Question

I am trying to program a value that runs from 10^-9 to 10^1. I have tried the following code and I have changed the e function to x10^() but my code will not run. It always gets stuck on this line. When I use e the error is invalid use of operator.

x0 = zeros(1,12); % Values for w1 w_pool = 1:1:200; % Preallocate result matrix x_all = zeros(numel(w_pool),numel(x0)) % sw...

2 years ago | 1 answer | 0

Question

Using fsolve to solve a set of equations with different constants every time

Hi guys, so I have used fsolve to sucessful solve the following four simultaneous non linear equations: F(1)=x(1)*(i*(w1-d1)+...

2 years ago | 2 answers | 0