Answered
ode45 is running an infinite loop
The system is ‘stiff’ bercause of the large differences in the parameter values. Use ode15s to get results — tspan = [0, 10...

4 years ago | 0

Answered
I need to group certain hours of a day into day and night categories from my xlsx file in the format "yyyy-MM-dd'T'HH:mm:ss."
The isbetween functin is the correct approach here, although if you have one set of 12-hour segments and you want to go over sev...

4 years ago | 0

| accepted

Answered
How to use FFT on my acceleration data in Matlab?
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1203773/example.xlsx'...

4 years ago | 0

| accepted

Answered
polar plot in matlab from data and graphs in excel
I prefer readtable because it also imports the variable names. To do the plot, use the polarplot function. For more inform...

4 years ago | 0

| accepted

Answered
How to create a dynamic function handle?
I have no idea what you are asking. It is straightforward to create a function handle that accepts various function arguments...

4 years ago | 0

Answered
Plot timeseries for mean monthly temperature
Create a timetable of your data and then use the retime function.

4 years ago | 0

Answered
Why is it that if I try to fill a strange polygon it comes out of the edges?
Using polyshape is one option, and likely the only approach that would work here — x0 = [45;45;50;50;50;50;50;55;55;55;55;55;5...

4 years ago | 0

| accepted

Answered
Regridding 3D data
I am not familiar with Mapping Toolbox requirements (I don’t have it so have no experience with it), so I’m not certain what spe...

4 years ago | 1

Answered
Contourf plot of magnitude of transferfunction along trajectory
I do not have your data or a clear description of what you want to do, however I would do something like this — s = tf('s'); ...

4 years ago | 0

| accepted

Answered
How to get sidebars back?
Right-click just to the right of APPS (on a blank section of the bue bar). A small pop-up should appear that says ‘Restore Too...

4 years ago | 0

| accepted

Answered
Create an ellipse at 45 degree angle
I experiment with using the rotate funciotn on the rectangle and it wouldn’t move at all. Try this instead — v = linspace...

4 years ago | 0

| accepted

Answered
Getting A Blank Plot From Code
It is necessary to do element-wise division in the plot call second argument: d31multi./d31eff However there are other proble...

4 years ago | 0

Answered
How to add proper values on top of bar chart
There are too many missing variables to run the posted code. Try something like this (requires two separate text calls) — Y...

4 years ago | 0

Answered
Picking a particular column to norm in matrix
Consider using the vecnorm function.

4 years ago | 1

Answered
Plot error bars in curve fitting figure
Using fitnlm since I am familiar with it — x = 0:20; y = 1-exp(-0.25*x) + randn(size(x))*0.1; objfcn = @(b,x) b(1) - exp(b...

4 years ago | 0

Answered
I need to align 3 signals by cross correlation
The alignsignals function (or simlar functions such as findsignal) could do what you want. With 3 signals, it would be necessar...

4 years ago | 0

Answered
How Do I Replace Numbers with Alphabets
Use arrays — w1 = {'A','B','C','D','E','F'}; w2 ='ABCDEF'; w3 = ["F","O","R","M","A","T"]; for k = 1:6 L1{k,:} = w1{...

4 years ago | 1

Answered
Convert syms matrix to double
That is not possible. The reason is that the matrix contains symbolic variables. They have to be assigned numeric values to us...

4 years ago | 0

Answered
Curve fitting for multiple variable
I have no clear idea what you want to do. This approach fits all the parameters at once — T1 = readtable('https://www.mathw...

4 years ago | 0

| accepted

Answered
converting vector result into matrices for surf command
I have no idea what you want to plot. Use the first two column (that correspond to ‘x’ and ‘y’ respectively), the choose what...

4 years ago | 0

Answered
creating a look up table to compare datetime stamps
Start with the isbetween function, and add a separate logical vector for the device ID — DateTime = datetime('now')+hours(0:4:...

4 years ago | 0

| accepted

Answered
How to differentiate the data in excel using a variable?
You can use the gradient function to calculate the numerical derivative — T1 = readtable('https://www.mathworks.com/matlabcent...

4 years ago | 0

| accepted

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

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

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

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

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

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

4 years 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: ...

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

4 years ago | 1

| accepted

Load more