Answered
Error calculating vector dot product when vector elements are variables
The Symbolic Math Toolbox makes the (usually appropriate) assumption that the variables are complex. Force them to be real by...

14 days ago | 1

| accepted

Answered
Hill plot for binding of a ligand L to a protein
There’s too much missing information to provide a specific response. The is not defined in the second equation, and there is n...

14 days ago | 0

Answered
Help extracting rows based on unique column 1 data
There is a lot I don’t unerstand about this problem. However, if you want to find the unique occurrences of each of the ‘talp...

15 days ago | 0

| accepted

Answered
How to manage weird black line on Y axis outside the figure itself
I cannot reproduce what you’re seeing. I don’t understand the temperature data after about 2013 (I have no idea what the dens...

15 days ago | 0

| accepted

Answered
Fourier Transformation of a portion of an audio signal is only resulting in a horizontal line, why?
Consider: R = length(r); u = pow2(nextpow2(R)); % Transform length ffR = fft(R,u); % Fourier Transform %fR = (0:R-1)*(Fs/R...

16 days ago | 1

| accepted

Answered
Extract data corresponding to particular dates
Therea re likely several ways to do this. Using ismember — DT = table(datetime('now')+days(0:364).', 'VariableNames',{'Date...

16 days ago | 0

| accepted

Answered
Colouring patches from a voronoi tessalation
It may be possible to close the exterior of the plot using the boundary function. I was able to do that reasonably well with: ...

16 days ago | 1

Answered
Determine -3db gain on Freq- gain plot
Use: find(diff(sign(gain-Gain_3db))) or something similar, to find the indices of all the points where the curve equals the s...

16 days ago | 1

| accepted

Answered
Extract curve/surface from an 2-D area of points not equivalently spaced
I am not certain what result you want. The Signal Processing Toolbox envelope funciton is one option, and since I am familiar...

16 days ago | 0

| accepted

Answered
How to find tangent line of curve
That plot actually looks familiar! See: How to draw a tangent line on a curve for one approach. (That result used the inflec...

17 days ago | 0

Answered
Bode Plot and Corner Frequency
The ‘sys1’ and ‘sys2’ transfer functions are actually improper, wince with a denominator of 1, they are infinite differentiators...

17 days ago | 1

| accepted

Answered
plot a data????
It appears to run correctly, unless there is a quesiton you are not stating. There are only 4 columns in ‘A’ so this threw th...

17 days ago | 0

Answered
Fourier series of any function
I am in no way certain what you want. Calculating a numerical transform is straightforward, however calculating a symbolic ve...

17 days ago | 0

Answered
Plot a shadow between to lines for a current figure without legend
Add a patch call — figure le=[1,2,3]; x=[0 5 15]; y=2*x; for i =1 : length(x) txt = ['$\alpha_1$ = ',num2str(le(1,i))...

17 days ago | 1

| accepted

Answered
Plotting shaded area in matlab
See this File Exchange search for hatch, then choose the function that works best in your intended appplication for it.

17 days ago | 0

| accepted

Answered
What are the graphics drivers with known issues?
I have never seen such a list, or have ever seen this issue being mentioned here previously. Someone from MathWorks needs to po...

17 days ago | 0

| accepted

Answered
smooth curve smooth curve
That appears to me to be a fft result after using the fftshift function on it. Each of the ‘peaks’ is a different frequency com...

17 days ago | 0

Answered
Parsing variable in table
Try something like this — T1 = table(datetime(['2021-02-01 09:00:00' '2021-02-01 09:01:00' '2021-02-01...

18 days ago | 0

| accepted

Answered
How to do normal distribution for same data?
Try something like this — %Import front sonar for 30cm: sonar_F_030 = readtable('https://www.mathworks.com/matlabcentral/answ...

18 days ago | 0

| accepted

Answered
plotting multiple fitting graphs in a single graph
The code works as posted. If you want to plot both results on the same axes, that is straightforward. See the third figure —...

18 days ago | 0

Answered
Vertical Error bars from gauge accuracy
I am not certain what result you want. I ran the code, and the errorbar plot completely covers most of the rest of it, so in...

18 days ago | 0

| accepted

Answered
must return a column vector
I am not certain what ‘ydot’ is supposed to be, however the element-wise multiplication is likely the problem. Use array mult...

18 days ago | 0

Answered
Boeing 747 transfer functions
That would seem to be the ‘A’ matrix of a state space model. Use the Control System Toolbox ss function (with the other necessa...

18 days ago | 1

Answered
Roots of a nonlinear equations system
Use the solve function — syms x y fcn = [-4*y^2 + 4*x - 4 == 0; 16*y^2 - 8*x*y ==0] S = solve(fcn) x = S.x y = S.y .

18 days ago | 1

Answered
Write variable label on the Y-axis of graphs
Try this — figure plot(sort(rand(1,10)), rand(1,10), '-p') ylabel('$\tilde{H}_{H,2}^{H,1}$', 'Interpreter','latex', 'FontSiz...

19 days ago | 1

Answered
Batch FFT operation on EMG data
I am not certain what you want to do. After you load the data and select the sections you want to analyse, convert the data i...

19 days ago | 0

| accepted

Answered
Solving ODEs for chemical rate equations
Here is prototype code for integrating the solution for a different kinetic parameter estimation problem with four rate equation...

19 days ago | 0

| accepted

Answered
finding the Column name of a matrix
I am not certain what you want to do. The equality comparison operator in MATLAB is the double-equal (==) operator — A = ra...

19 days ago | 0

| accepted

Answered
Error using / matrix dimensions must agree
The ‘y’ expression is not a function of ‘x’. Correcting that (and assuming the independent variable is actually ‘ec’) — ec ...

19 days ago | 1

| accepted

Answered
Why is the derivative of a matrix not of the same order?
Use the gradient function instead of diff.

19 days ago | 1

| accepted

Load more