Réponse apportée
Time resolution of Spectral Entropy - How could I modify it?
You need to provide the spectrogram to the Matlab function, and this spectrogram should have your desired time resolution. See ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
FFT of quantized signal
There are some issues with your code. See my modifications and comments below. You cannot calculate SNR, because you did not add...

presque 3 ans il y a | 0

Réponse apportée
Comparing Audio Impulse Responses
More generally, I believe you're looking for a quantitative measure of similarity between functions. This is a large domain of r...

presque 3 ans il y a | 0

Réponse apportée
How to tell/check existing categories in tall tables
Yes, there is a way. Use findgroups.

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Replace NaN with median per column
clc, clear x1 = randn(5, 5); x1(randi(numel(x1), 1, 5)) = nan; x2 = fillmissing(x1, 'movmedian', size(x1,1)*2, 1); display...

presque 3 ans il y a | 1

Réponse apportée
x(t) = A sin(w0t + Ø) exp(-at)
clc, clear % sampling frequency fs = 1; % sampling period Ts = 1/fs; % sinusoidal frequency f0 = 0.01*fs; % Hz w0 =...

presque 3 ans il y a | 0

Réponse apportée
Insert new row with values in a table before specific values
WP1 = [0 145 169 1693 1708 2729 0 48]; WP2 = [145 169 1693 1708 2729 2779 48 1382]; WC = [0 1 1 1 1 0 0 1]; dat = [WP1', WP...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to split table cell into two columns based on data type?
Below is an example with toy data showing what you need to do. clc, clear, T1 = [1;2]; T2 = {'Y12'; 'Y2'}; T3 = {'H12'; 'H0'}...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to generate a periodic customized waveform?
This simple function can compute the signal you need. Use lambda to control the decay and see the other parameters. function x...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to plot ifft for a frequency signal?
clc, close all fs = 32768; fidx = z.Date23122013; specOneSide = z.Time100351; [fidx, idx] = unique(fidx); specOneSide =...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Creating a modified audiofile
clc, clear % load data load handel.mat filename = 'handel.wav'; audiowrite(filename, y, Fs); % save only 2 second of au...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I would like to have sigma and epsilon in greek symbols in y and x axis respectively (with latex interpreter)
What are you trying to achieve with the sprintf function?? Use the following to name the X- and Y-axis: x = randn(1, 128); plo...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Normal Distribution generation using acceptance rejection
Here is a simple script to estimqte the pdf of X. clc, clear % number of iterations, the higher this value is, the better is...

presque 3 ans il y a | 0

Réponse apportée
How to convert a flowchart into a code
clc, clear, % If you want the user to enter the vector x, then uncomment the lines 6 to 14 % and comment the line 16 % x ...

presque 3 ans il y a | 0

Réponse apportée
cell2mat too slow
To speed up the computations, you simply need to avoid using structure arrays.

presque 3 ans il y a | 0

Réponse apportée
Ranking values - sorting into descending order
Just use the Matlab function sort without any looping. See an example below. X = randn(10, 10); Xranked = sort(X, 2, 'descend'...

presque 3 ans il y a | 0

Réponse apportée
Plot the magnitude and phase by using Matlab
Here is one way to get the spectrum. clc, clear % fundamental frequencies f1 = 1/3; f2 = 5/6; % sampling frequency fs ...

presque 3 ans il y a | 0

Réponse apportée
loop for every field of a structure array
See an example below on how to get the fields of a structure, then access the data in each field. % toy data: structure of two ...

presque 3 ans il y a | 0

Réponse apportée
Legend option and numbering in boxes
You can define the number of columns in the legend object using the property NumColumns. Use the following: legend({'2500 Datas...

presque 3 ans il y a | 0

Réponse apportée
why this line gives error?
It seems that the findpeaks function could not find a peak, so it returned an empty vector. Check your signal, or specify some p...

presque 3 ans il y a | 0

Réponse apportée
Group overlay bar chars using cell with three 10x5 double arrays
A very simple solution is to plot the data directly but after introducing matrices of zeros so that the bars look like they are ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to compute cross sectional area and volume from a stack of segmented images?
Binarize the image, then use region properties to compute the area (number of pixels). Once you know the number of pixels, you c...

presque 3 ans il y a | 0

Réponse apportée
How to set subplots same size
Because you are requesting to use the same length for the data units along each axis when you specified axis equal Matlab will...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Import STL file into matlab and use a transform object as a parent to move it in a 3D plot
You can use this contribution to return the patch structs from a given stl file.

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How can I plot some fft data in a different way?
The first column in the txt files you provided is a DateTime vector, so again, I am not able to understand how ϕ is defined. I w...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Posterior probability math to code
First of all, you have to pay attention to the fact that there is no equality in the relation you presented, but rather a propor...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
comparing a cell with the before it, Percentage of change
If you are defining the rate of change as: the problem becomes easy. Assuming that you have vectors, just use delta = diff(x...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to overcome the error in the listener function while getting the final positions of an interactive ROI?
If you just need to get the position of the ROI, then you do not need necessary to create a listener. Just access the feature Ve...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I want to draw two figure in same figure window for comparison purpose.
See the example below if you want to draw data on the same axes: % first signal t = 0:127; x = cos(2*pi*0.01*t); % create ...

presque 3 ans il y a | 0

Réponse apportée
Could anyone help me how to find the difference between the two columns in 10x2 double
Read about Matlab cell arrays and how to access their data here. for your question, do the following: A{1,1}(:,1) - A{1,1}(:...

presque 3 ans il y a | 0