Respondida
find max for every 7 rows
Use either the reshape or the Signal Processing Toolbox buffer function for each variable. Example — Data = randn(49,2) ...

casi 3 años hace | 0

Respondida
How to synchronize three measurment data?
This turned out to be a bit more involved than I thought it would be. The data matrices do not have the same lengths and the sa...

casi 3 años hace | 1

| aceptada

Respondida
Using coefficients from designNotchPeakIIR generated an error message
The filtfilt function needs a 6-column second-order-section matrix and a scale factor. The matrix can be created by horizontall...

casi 3 años hace | 0

| aceptada

Respondida
How do I target values within a range for different variables within the same given time series?
I do not completely understand what the data are, or the lengths or content of the various data arrays. It might be worthwhil...

casi 3 años hace | 0

Respondida
how to use freqz function correctly
You can set the 'XLim ' range for the subplot axes, however that may be a bit of a stretch even then. Another option is to sign...

casi 3 años hace | 0

Respondida
How to obrain p-values for coefficients with polyval - polyparci?
‘... but there is no built-in way to have p-values for those coefficient?’ There is now. I did not realise that there was a ...

casi 3 años hace | 0

Respondida
Unrecognized function or variable 'tradeoff'
The only reference I can find in the File Exchange is MTEX2Gmsh. If this is the correct citation, you will need to download a...

casi 3 años hace | 0

| aceptada

Respondida
I have two peaks in my doppler signal. 1 @ zero and other @ actual velocity.
I am not certain what your data are, however the ‘peak’ at D-C (0 Hz) is likely the result of a constant D-C offset. Subtract...

casi 3 años hace | 0

Respondida
Is there a Matlab built in function to determine the domain of a function?
The Symbolic Math Toolbox has the argnames function.

casi 3 años hace | 0

Respondida
how can I make a custum legend in a second figure?
It is difficult to follow your code. One optioni would be to use the 'DisplayName' name-value pair as described in Specify ...

casi 3 años hace | 0

| aceptada

Respondida
How to get different sizes of horizontal and vertical error bars?
One option would be to use: axis equal or: axis('equal') There is no obvious way to scale them otherwise.

casi 3 años hace | 0

Respondida
Image display error when using surf
MATLAB 7.1 was introduced in 2006. I cannot find any documentation for the Signal Processing Toolbox for it (that likely explai...

casi 3 años hace | 1

| aceptada

Respondida
getting a clear signal with eog
One option I like for these sorts of signals is the Savitzky-Golay filter (sgolayfilt). I generally use a 3-degree polynomial,...

casi 3 años hace | 1

Respondida
uncertainty in polyfit from measurements?
When this post first appeared, polyparci did not exist. It does now. It may be helpful.

casi 3 años hace | 0

Respondida
Supplied objective function must return a scalar value
The function needs to return one parameter vector. One way to do that is to create a second function to map the inpouts to ...

casi 3 años hace | 0

| aceptada

Respondida
High pass filter on cumtrapz
The ‘acceleration’ signal has a constant offset of about 1.03, so the integration is going to emphasize the offset and not the i...

casi 3 años hace | 0

| aceptada

Respondida
how to create table Date/Value
The unstack function works here. Try this — LD = load('matlab_data.mat') T1 = table(year(LD.dat),month(LD.dat,'short...

casi 3 años hace | 0

| aceptada

Respondida
Labelling Curves on a Graph, This code worked a decade ago, but will not work in 2023a
Looking at the current clabel documentation, the second argument to it has to be the second output of the contour call. It is l...

casi 3 años hace | 0

| aceptada

Respondida
I want to break down my 3d graph into 2d graphs.
The easiest way to do this is with the view function. Use ‘view(90,0)’ for the ‘x-z’ view, and ‘view(0,0)’ for the ‘y-z’ vie...

casi 3 años hace | 0

| aceptada

Respondida
Fitdist gives wrong answer
The and values are in log units. Calculatee their exponentials — Add=16 %%info given in question 4 River_flood_level=[516...

casi 3 años hace | 0

| aceptada

Respondida
Question about gain scalar in sos2zp
When I checked that with some code I wrote for a different problem, ‘k’ and ‘G’ are scalars with the same values. Fs = 1E+3; ...

casi 3 años hace | 0

Respondida
How to find uncertainties in the coefficients of polyfit
An earlier version of my polyparci function already existed when this question originally posted. It calculates the confidence ...

casi 3 años hace | 1

Enviada


polyparci
POLYPARCI calculates confidence intervals for parameters estimated by ‘polyfit’.

casi 3 años hace | 4090 descargas |

4.8 / 5

Respondida
How to find the gradient of plotted values?
Use the gradient function to calculate the numerical gradient/derivative — Fs = 100; L = 60; t = linspace(0, Fs*L, Fs*L+1)/F...

casi 3 años hace | 0

Respondida
freqz() magnitude plot behavior for estimated filter coefficients
The third argument to freqz (when the first two are the transfer function coefficients, different with a second-order-section m...

casi 3 años hace | 0

Respondida
How to change the graph type
I believe that this is reasonably close — num_simulations = 10000; %Common parameters Discount_Rate_min = 0.06; % assu...

casi 3 años hace | 1

| aceptada

Respondida
How can I plot the streamlines in all region around the inside sphere ?
One approach is to change the code to add a patch object in this part of it (add ‘pv’ and ‘cv’ and the patch call): set(polar(...

casi 3 años hace | 1

| aceptada

Respondida
matlab 'unique' is skipping rows with data
I am not certain what the problem is, however if you want to test for more than one value in a row, specify that with the 'rows'...

casi 3 años hace | 0

Respondida
How to convert 30s daily data into hourly data using MATLAB?
It would be nice to know what version you are using. Are you supposed to accumulate (for example take the mean) of the data ove...

casi 3 años hace | 0

| aceptada

Respondida
Script of importing data not working with no warning or error
The function does not produce any outputs. You will need to declare: global ExperimentalIVData in your calling script to g...

casi 3 años hace | 1

| aceptada

Cargar más