Respondida
Adding the stl file to the Matlab simulation
It depends what the .stl file is. The first step would be to use the stlread function to import it, and then use trisurf (or...

más de 2 años hace | 0

Respondida
How can I specify the region of the contour plot ?
Without the data or the contour levels labels, a precise reply is not possible. If you know that all the data are either greate...

más de 2 años hace | 0

Respondida
Getting NaN after filtfilt function
You are using transfer function (‘[b,a]’) output implementation. Often, this creates an unstable filter, producing NaN values i...

más de 2 años hace | 0

| aceptada

Respondida
How to plot different datasets in a scatterplot next to each other at discrete points on x-axis?
See if the swarmchart function (introduced in R2020b) will do what you want.

más de 2 años hace | 1

Respondida
What code will open .stl files successfully?
I am having serious problems trying to access that file. (I’ll keep working on it.) The patch function requires ‘x’, ‘y’, (a...

más de 2 años hace | 0

Respondida
Can I assign vectors with different number of rows per-column to a matrix?
I would use a cell array. It is not as convenient to use as a numeric matrix, however it tolerates different length vectors.

más de 2 años hace | 0

| aceptada

Respondida
I'm dealing with Speech compression using Linear Predictive Coding. When I run the code I get a few errors.
This is the path to the file, however it does not include the file name (and extension): kdt_003 = fullfile('C:\Users\user\Des...

más de 2 años hace | 1

| aceptada

Respondida
mapping bode plot for Low Pass Filter
You need to do element-wise exponentiation (.^) and division (./) — R = 1000; C = 100*10^(-9); tau = R*C; w = 0:100:100000;...

más de 2 años hace | 0

Respondida
how to find the values that minimize the objective function using the generic algorithm?
I used some standardised code that I wrote for these sorts of problems that I adapted to your data — clear all close all clc...

más de 2 años hace | 0

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) ...

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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 ...

más de 2 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...

más de 2 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...

más de 2 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.

más de 2 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 ...

más de 2 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.

más de 2 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...

más de 2 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,...

más de 2 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.

más de 2 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 ...

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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...

más de 2 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; ...

más de 2 años hace | 0

Cargar más