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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 1

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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;...

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 1

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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,...

mehr als 2 Jahre vor | 1

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

mehr als 2 Jahre vor | 0

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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; ...

mehr als 2 Jahre vor | 0

Mehr laden