Answered
error "Invalid parameter name: CriticalValueType." in example code.
If I understand correctly what you’re doing, that version of the multcompare function was introduced in R2022b, according to the...

4 years ago | 0

| accepted

Answered
How to find number of counts for atoms (each minor grid) within XY grid?
I am not certain what you want. The histogram2 function is one option — T1 = readtable('https://www.mathworks.com/matlabcen...

4 years ago | 1

| accepted

Answered
I am trying to plot acceleration-time graph by using a txt file but I got error.
The columns are reversed from your assignments. The first column is the signal, and the second column is the time vector. Tr...

4 years ago | 1

| accepted

Answered
String date and time identification
If they all have the same format — date= '2021-07-011407404.5' DT = datetime(date(1:16), 'InputFormat','yyyy-MM-ddHHmmss', 'F...

4 years ago | 0

Answered
how to convert a Laplace transform into a transfer function value
The ‘d’ expression currently exists as a symbolic object. It needs to be transformed into a double value and then to a system o...

4 years ago | 0

Answered
Error using Dsolve: "Invalid indexing or function definition. Indexing must follow MATLAB indexing. Function arguments must be symbolic variables, and..."
The differential equations are nonlinear, so it is highly unlikely that there is an analytic solution for them. Integrate the...

4 years ago | 0

Answered
convert a string into a date and time format
Try something like this — m ='October17,196616:41:00'; DT = datetime(m, 'InputFormat','MMMMdd,yyyyHH:mm:ss', 'Format','yyyy/M...

4 years ago | 0

| accepted

Answered
I want automatic tuning of RF filter screws
I do not have the RF Toolbox, however creating a filter as an anonymous function with appropriate arguments (I just use the pass...

4 years ago | 1

| accepted

Answered
Different tick values on same axis
See if the xticks call in: xticks([a+g:dxf:b-g (b-g+dxs):dxs:b]) does what you want — a=0; b=4; c=0; d=6; g=1; dxs=0.2...

4 years ago | 1

| accepted

Answered
Vertical line in plots
The xline function will plot a vertical line between the limits of the y-axis at the chosen x-value. To plot a vertical line onl...

4 years ago | 0

| accepted

Answered
Detecting start and end of signal
Try something like this — M1 = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1251052/P05%20Trial%...

4 years ago | 0

Answered
Uploading my code, with DataSet on this forum
The ‘Help’ section (click on the ‘More’ just to the right of ‘Browse’ above the title in this page and select the last item in t...

4 years ago | 0

Answered
How can i solve the Too many output arguments error problem ?
You are overshadowing the error function (although there are also two other error functions in the Statistics and Machine Learni...

4 years ago | 0

Answered
How order a dataset
One approach is to usee the sortrows function — Data = table(randi(1E4,6,1),['M';'B';'M';'M';'B';'B'], rand(6,1), randn(6,1), ...

4 years ago | 1

Answered
Plot smoothing line without points
I am not certain what you wnat to do. Taking a guess — N = 20; x = sort(randn(1,N)); y = randn(1,N); xs = linspace(min...

4 years ago | 1

| accepted

Answered
Converting cell in double
Try something like this — LD = load(websave('ids','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1249257/ids....

4 years ago | 0

| accepted

Answered
binary vector that consists of a zero for normal years and a 1 for a leap year
Use the eomday function — YearVct = 1950:2050; Lv = eomday(YearVct,2) == 29 % Create Logic...

4 years ago | 0

| accepted

Answered
hello. i have a txt file which i want to import and plot. how can i do it?
One approach — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1248562/packerchannel.txt','Vari...

4 years ago | 0

Answered
How to extract idpoly property to workspace
There are several properties that can be retrieved from the System Identification Toolbox ‘data’ objects. See the documentation...

4 years ago | 0

| accepted

Answered
Getting wrong frequency from fft compared to curve fit
Calculating the frequencies for a two-sided Fourier transform can initially be a bit of a challenge. Try something like this ...

4 years ago | 1

| accepted

Answered
How to extract column number of a variable in matlab table?
One approach — T1 = array2table(randn(7,5), 'VariableNames',{'A1','A2','A3','A4','A5'}) VN = T1.Properties.VariableNames; Lv...

4 years ago | 0

| accepted

Answered
where is the error
The system is nonlinear, and not one of the few nonlinear systems that haave analytic solutions. After commenting-out the dso...

4 years ago | 0

| accepted

Answered
second analytical solution of implicit equation
I believe you are plotting ‘M’ as a funciton of ‘r’ however it likely does not have an analytic solution. In the lambertw argum...

4 years ago | 0

Answered
Edit envelope data by mouse
Please describe what you want to do. If envelope is not doing what you want, and you want to find the peaks (rather than RMS ...

4 years ago | 0

Answered
How can i delete max values for each 5 rows in vector
This looks like homework, however I need something to do this morning — A = [1 14 4 23 3; 8 9 12 4 5; 2 4 19 20 22]; ...

4 years ago | 0

| accepted

Answered
Root mean square of velocity fluctuations
The data are gridded, and actually for surfaces. How do you want to calculate the RMS value of a surface? data = readmatr...

4 years ago | 0

| accepted

Answered
@(T,X)SSMODEL must return a column vector ERROR
I have no idea what ‘alpha’ is, however it must be numeric and not symbolic. It needs to be passed as an extra argument to ‘ssm...

4 years ago | 1

| accepted

Answered
Unable to perform assignment because dot indexing is not supported for variables of this type
The xlsread function returns the first output as a matrix of double values, as described in the documentation section on num, an...

4 years ago | 0

Answered
what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
Try this — syms c lambda n_eff(lambda) D_T = -(lambda/c) * diff(n_eff,2) See MATLAB Onramp .

4 years ago | 0

| accepted

Answered
Dual Tone Multi Frequency Fourier Transform
The Fourier transform plots are correct. I changed them to plot a one-sided transform, and this emphasizes the differences in t...

4 years ago | 0

| accepted

Load more