Answered
How to assign the result of a row deletion operation to a new matrix?
I would do something like this — A = magic(10) % Save Original C = A; ...

3 years ago | 0

| accepted

Answered
why fsolve cant find the solutoin?
I cannot understand ther fsolve function (or the call to it), and in any event, it is not necessary since it is possible calcula...

3 years ago | 2

| accepted

Answered
How can i found the infelction point from the data and remove the data before the first and last infelction points.
The data are quite noisy. After filtering them, it is not obvious what sort of inflection point you want or how to define it. ...

3 years ago | 0

Answered
Plotting complex sinusoid to a cosine wave
Add to the complex argument to shift the complex exponential result by 45° — Tt = 1; % Total...

3 years ago | 0

Answered
Divide timeseries to monthly ones
A for loop is the easiest way to do this — LD = load(websave('dataset','https://www.mathworks.com/matlabcentral/answers/upload...

3 years ago | 0

| accepted

Answered
Sinusoidal Frequency Response of a Transfer Function
If I understand your Question correctly, the bode, bodeplot, nichols, freqresp and lsim functions will do what you want, or for ...

3 years ago | 0

| accepted

Answered
How to do an Integral in matlab?
I would use the integral function.

3 years ago | 1

Answered
Add monthly value from one table to daily data in another table by matching month-year
I do not have a thorough understanding of what you want to do. One option could be join, and another could be synchronize.

3 years ago | 0

| accepted

Answered
How to create for loop on date?
If you want to simply isolate the dates from September 2019 to April 2020, ise the isbetween function (or logical indexing, esse...

3 years ago | 0

Answered
How to find max of each iteration in cell array?
It would help to have your cell array. Try something like this — M = randn(3, 20, 2); C = squeeze(mat2cell(M,3,ones(20,1),...

3 years ago | 0

| accepted

Answered
lsqcurvefit: Function value and YDATA sizes are not equal.
The output returned by ‘kinetics’ needs to be: C = Cv(:,[1 3]); in this instance. The code now works, however the fit is ...

3 years ago | 1

| accepted

Answered
Removing NaNs from imported table
See if the rmmissing function (introduced in R2016b) will do what you want.

3 years ago | 2

| accepted

Answered
Surface normal in 3-D
Although I doubt this would work with with symbolic plots without some additional coding, the surfnorm function would be worth e...

3 years ago | 0

Answered
How can I add labels to my scatter plot?
Try something like this — t = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1263190/dataset.xlsx')...

3 years ago | 2

| accepted

Answered
convert matrix steps from 1 to 0.1
Use the linspace function to define the time vector — L = 0.1; % signal Length (sec) F...

3 years ago | 0

Answered
how can I plot an increase and decrease in tempearture as x-axes (i.e. from 25 to 700, 700 to 500 all on x-axes), agains different y-axes
The tiledlayout function can do this in a relatively straightforward manner. LD = load(websave('A','https://www.mathworks.com...

3 years ago | 0

| accepted

Answered
How to design FIR pass-band using a table of gains for frequences range
This might be possible using firpmord, and firpm, or firls. These functions will calculate the filter coefficients. To see wha...

3 years ago | 1

| accepted

Answered
Plot u=f(x,y,z) with all discrete data
The (x,y,z) vector data must be converted into a 2D matrix by some sort of computational magic so the contour can be plotted. ...

3 years ago | 0

| accepted

Answered
Other result accompanying fitted data
I am pleased that you found my code helpful! The code fits only one vector, so it only has one output. To get all the result...

3 years ago | 1

| accepted

Answered
how to filer frequencies?
It is possible to design a FIR ‘comb’ filter to do this. Use the filtfilt function to do the actual filtering. Fs = 4E+4; ...

3 years ago | 0

Answered
add time vector to spectrum
It is not possible to run that (missing data), and nearly impossible to determine what you want to do. It is certainly possib...

3 years ago | 0

Answered
Error using plot vectors must be the same length
Note that ‘z1’ is defined with a +1 default increnent and with a starting value that is greater than its ending value. This mea...

3 years ago | 0

Answered
add 'dd-MMM-yyyy' data to datetime array in form 'HH:mm:ss:SSS' with rollover
I’m not certain how robust this is, however it seems to work in this example — Times = ['23:59:59:873' '23:59:59:893'...

3 years ago | 1

| accepted

Answered
Incorrect use if/else
Perhaps this — cell = {[],[],[]}; cell1 = {rand(1452,2),[],[]}; A = cell{1,1}; B = cell1{1,1}; if isempty(A) B(:,2)...

3 years ago | 0

| accepted

Answered
How to plot the mean value of X corresponding to each Y value?
I am not certain what you want. Perhaps something like this — x = ones(9,1)*linspace(13, 19, 50); ...

3 years ago | 0

| accepted

Answered
Error on using tf function and rlocus
The correct approach to finding potential overshadowing functions or variables is: which -all tf which -all rlocus and shoul...

3 years ago | 0

Answered
How to create a time vector that is incremented between two datetime strings?
It would help to have some idea of what you want to do, and what ‘data’ is (and for good measure ‘data’ itself). Try somethin...

3 years ago | 1

| accepted

Answered
Find period cycle and frequency for signal
Finding the approximate zero-crossings is straightforward, and the subsequent interpolation involves a loop to get the exact zer...

3 years ago | 0

Answered
nonlinear least square optimization
The Symbolic Math Toolbox is not appropriate for this. Use the Optimization Toolbox function lsqcurvefit instead (since you app...

3 years ago | 0

Answered
How to obtain correct frequency and amplitude via FFT
Increase the frequency resolution (I doubled it here, although you can increase it further) with nfft = 2^nextpow2(nt_sign)*2 ...

3 years ago | 0

| accepted

Load more