Answered
How to label the points on x axis in hours.
Use this approach to convert the strings to datetime arrays: old = {'2020-08-03T20:40:00.111Z'; '2020-08-03T21:40:01.123Z'}; ...

5 years ago | 1

Answered
Getting an error when trying to create a 92x1 matrix.
The problem is in the sixth row: 238.8;239.0;241.8;241.8;239.6,... The comma at the end should be a semicolon. The comma cre...

5 years ago | 0

Answered
segment function issues by using matlab
The error is that ‘s’ was not defined anywhere in the ‘up’ function, so MATLAB has nothing to assign to it in order to return it...

5 years ago | 0

Answered
finding the start and end points of a unimodal peak
The findpeaks function might not be the best option here. Experiment with ischange and findchangepts (Signal Processing Toolb...

5 years ago | 0

| accepted

Answered
how to read a .mat file into table
The struct2table function could be helpful.

5 years ago | 0

| accepted

Answered
Why does the output of audioread() gives samples less than shown in audioinfo() ?
This is interesting! The online Run feature computer uses Linux, and gives this result: ZF = 'https://www.mathworks.com/mat...

5 years ago | 1

| accepted

Answered
Arrange and Plot array values over time
One approach — M = rand(24,24,5); % Example Matrix figure hold on for k = 1:size(M,3) surf(...

5 years ago | 0

Answered
Timestamp in table not recognized as time value
It likel;y needs to be converted to a datetime array — timestamp = '2020-08-03T20:40:00.000Z' datetimestamp = datetime(timest...

5 years ago | 2

| accepted

Answered
Identification of a curve
If they are the same lengths, I would use either pdist2 or knnsearch to dientify them. Since they have different amplitudes, it...

5 years ago | 0

Answered
What format is required for Matlab LSIM Function input data?
The difference between continuous and sampled signals iis simply one of context. Ths signals sthemselves do not exist in z-spac...

5 years ago | 0

| accepted

Answered
Power spectrum and periodicity
There are a number of functions in the Spectral Estimation section of the Signal Processing Toolbox documentation that will work...

5 years ago | 0

| accepted

Answered
Convolution not working with 'uint16'
That likely has to do with the precision of the calculations. I would convert them to double, do the calculations, and then con...

5 years ago | 0

| accepted

Answered
How to Smooth a plot conserving some point?
Experiment with the interp1 function, using the 'pchip' method. It may be necessary to use linspace to increase the number of p...

5 years ago | 0

| accepted

Answered
Extract specific values and row coloumn information in matrix
Try this — M = randi([0 7], 5, 6) % Example Matrix [r,c] = find(M == 5); ...

5 years ago | 1

Answered
Why does an error saying "Unrecognised function or variable" occrurs while solving a two variable polynomial equation numerically using vpasolve
Needs parentheses, single quotes, and some other tweaks — % clc;clear;close all; x = sym('x'); % sym(t); t= 0.1:0.01:1; fo...

5 years ago | 0

| accepted

Answered
Convert a time column of yyyymmddHHMM to yyyy-mm-dd HH:MM
Perhaps — vn = 200701010130; vs = num2str(vn) vd = datetime(vs, 'InputFormat','yyyyMMddHHmm', 'Format','yyyy-MM-dd HH:mm') ...

5 years ago | 0

| accepted

Answered
How to implement numerical solvers
The function needs to be changed so that it accepts one vector of parameters (‘b’ here) and produces a scalar value for ‘S’. Ju...

5 years ago | 0

Answered
Is it possible to make a ddefun with a changing variable that will run in a for loop?
Please do not use global variables. Pass them as extra parameters as described in Passing Extra Parameters. I made that change...

5 years ago | 0

Answered
converting a second degree differential equation into a first order
Declare all the variables, and for good measure, return the second output from odeToVectorField because it tells you wnat the fu...

5 years ago | 0

| accepted

Answered
Argument to dynamic structure reference must evaluate to a valid field name.
Typographical error. The single . is generating the error. V_c =2.*pi.*x10.((R-x9).^2 - x1.^2) + pi.*L.*(R.^2 - (R-x9).^2)...

5 years ago | 0

| accepted

Answered
Unable to plot transfer function properly by using step(tf,array)
I do not usually post multiple answers to the same question, however my original answer is in the process of being sabotaged, so...

5 years ago | 0

| accepted

Answered
Need help designing stopband filter
Thank you for quoting my code! The FIR filter will eliminate both frequencies in one filtfilt call to it, however they are no...

5 years ago | 0

| accepted

Answered
axis off sets background color back to white despite set(gca....
If the desired result is simply to make the axes invisible, perhaps using the Axes Properties XColor, YColor, and ZColor values...

5 years ago | 0

Answered
Z-Transform of numerical test data
Data are data. They exist as discrete elements in computers because (except for signal-level internal voltages and currents in ...

5 years ago | 0

| accepted

Answered
Code not working?
It plots correctly if ‘f_f’ is defined correctly. The middle value for colon-operator generated sequences is the ‘step’ value, ...

5 years ago | 1

Answered
Unable to plot transfer function properly by using step(tf,array)
It may not be the desired result (I have no way of knowing what that is), however it appears to be exactly what step was asked t...

5 years ago | 0

Answered
How do I count certain values within a column of a table?
One approach — MajorAxisLength = 30*rand(15,1) Lv = (MajorAxisLength >= 5) & (MajorAxisLength <= 26) MeetCriteria = nnz(Lv...

5 years ago | 0

Answered
Can matlab 2012b run on windows 11?
No. Only R2021b and later releases support Windows 11. See Platform Road Map for the MATLAB and Simulink Product Families ,...

5 years ago | 0

| accepted

Answered
Pulling certain data from a text file into Matlab with strsplit
Try something like this — % opts = weboptions('ContentType','text'); % M = webread('https://www.mathworks.com/matlabcentral...

5 years ago | 0

Answered
How to fit data!
This is something similar to Curve Fitting of large Data Measurement? however with a different sort of envelope. I would begin ...

5 years ago | 0

| accepted

Load more