Answered
How to export a set of tables to Excel
One option using writetable is to use the 'Sheet' name-value pair (the first entry in the documentation section on Spreadsheet F...

2 years ago | 0

Answered
'Polyfit' vs 'Detrend' function
It can be linear although polynomial trends are permitted. To visually understand how it works, see the documentation section o...

2 years ago | 1

| accepted

Answered
How to know which decomposition algorithm was applied (trenddecomp ())
As I read the trenddecomp documentation, ‘SSA’ appears to be the default. It would be necessary to specifically choose ‘STL’ wi...

2 years ago | 1

Answered
concatenation of solutions of ODE
I would create one ‘tspan1’ vector with a specific number of elemensts, and the same for ‘tspan2’ although they are only require...

2 years ago | 0

Answered
How to filter columns and count data
It would help to have the data. I would be tempted to do something like this: Mishaps = readtable('YourData.xlsx') TTCv = Mi...

2 years ago | 0

Answered
select a portion of the matrix
One approach — LD = load('matrix_C.mat'); C = LD.C idx = find(sum(C(:,[2 3 4])==0,2)==3, 1); Result = C(1:idx,:) .

2 years ago | 0

| accepted

Answered
passive RC highpass magnitude FRF to MATLAB FIR coefficients
I generally don’t design filters with such specificity, and so usually use relatively straightforward command-line functions. T...

2 years ago | 0

| accepted

Answered
How to convert idinput signal to analog signal
As I understand lsim, it automatically samples continuous time models using the defined method (or the method it decides to use,...

2 years ago | 0

| accepted

Answered
How to expand a symbolic matrix expression?
I am not certain what you intend by ‘expand’. One option could be: sympref('AbbreviateOutput',false); that I added, and an...

3 years ago | 0

| accepted

Answered
Staked 3D line chart
Perhaps something like this — x = linspace(-40, 0, 20).'; zv = linspace(2, 4.5, 4); z = repmat(zv,1,3).*exp(0.1*x) + rand(nu...

3 years ago | 0

| accepted

Answered
How to find the linear slope of a set of data points on a graph
Perhaps this — T=[0 0.250000000000000 1.14000000000000 2.33000000000000 3.58000000000000 4.76000000000000 5.150000000000...

3 years ago | 0

| accepted

Answered
insert one of bar graph "inside" the other
See for example Position Multiple Axes in Figure in the axes documentation for one way to do this. EDIT — (2 Aug 2023 at 17...

3 years ago | 0

| accepted

Answered
Overlay and group two (or more) bar graphs (value by value)
Try this — LD1 = load('CountArray_A.mat'); LD2 = load('CountArray_S.mat'); CountArray_A = LD1.CountArray_A; CountArray_S = ...

3 years ago | 0

| accepted

Answered
Bessel filter analog to digital
Simply stated, there is no reliable method of digitsing a Bessel filter, and even if you managed to get some sort of result usin...

3 years ago | 0

Answered
How can I indicate the period of time in trenddecomp() function when using a timetable input?
Looking at the documentation for trenddecomp, it seems that the period needs to be in the same units as the sampling interval. ...

3 years ago | 1

| accepted

Answered
Centering Colorbar and Reducing Label Padding
Changing the position can be a bit more efficient — hcb=colorbar('south'); hcb.Label.String='Colorbar Title'; colorbarpos=hc...

3 years ago | 0

| accepted

Answered
How to change the name of a table and its headings?
This should work in R2020b — Interval_of_speed_rpm = randn(5,1); Duration_of_speed_sec = randn(5,1); Time_duration_vehicle_s...

3 years ago | 0

Answered
How to remove a single point from meshgrid?
I would use ‘logical indexing’ to simply delete that point — x = linspace(-3,10) y = linspace(-3,0) x = x(x~=0) y = y(y~=...

3 years ago | 1

Answered
linear interpolation for the curves
There are missing data, however they are all at the end of the first -time-pressure values. Filling them would require extrapol...

3 years ago | 0

Answered
Spectrogram of EEG signal
One approach — Fs = 256; figure spectrogram(EEGsignal, hann, [], [], [], Fs) xlim([0 700]) ...

3 years ago | 0

Answered
How to filter signals properly?
The filter is not going to do much actual filtering. Try this — LD = load('sampleSignal.mat'); sampleSignal = LD.sampleSig...

3 years ago | 0

| accepted

Answered
How can we compute the given integral using the data rho(x, y, z)
Perhaps using the integral3 function.

3 years ago | 0

Answered
Tilted 3D model orientation
The rotate function could be worth exploring. Example — [X,Y,Z] = peaks(50); figure hs1 = surf(X,Y,Z+10); hold on hs2...

3 years ago | 0

Answered
Hello I hope you are well I would like to ask you how I adjust the mark values on the X-axis in multiples of 3 or per unit so that the 24 points are observed. Thank you very m
I am not certain what you want. Try this — fig=figure(1); clf; x1 = [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20...

3 years ago | 0

| accepted

Answered
Draw and color the intersection between two 3D surfaces?
In that event, the code would go something like this — syms x y z theta S1 = z <= sqrt(x^2+y^2) S2 = x^2 + y^2 + (z-1)^2 <=...

3 years ago | 0

Answered
Plotting multiple functions from data stored in arrays.
We do not have the arrays, however an approach using ‘logical indexing’ will probably work here — x = linspace(0, 1, 5000).'; ...

3 years ago | 0

Answered
Functions specgram and spectrogram - what does the spectogram' 3rd dimension mean and what unit it has?
The spectrogram output is the power spectral density, so in units of power/frequency, or dB/Hz. It differs in that respect fr...

3 years ago | 1

| accepted

Answered
How to solve non-linear equations with integrations?
It is not possible to solve this numerically without substituting numerical values for the known variables. That aside, use t...

3 years ago | 0

Answered
Transfer function response using idinput as input signal.
It would help to have the details. Example — num = rand(1,2) den = rand(1,3) Ts = 0.01; sys = tf(num,den,Ts) Range = ...

3 years ago | 0

| accepted

Answered
Having issues with plotting a single level contour line on a matrix that has edges
Unfortunately, enough information is missing from the posted code to prevent using it. Getting the individual lines in a cont...

3 years ago | 1

| accepted

Load more