Answered
Indexing cell array column from excel data
I do not have the matrices, however if they are already imported, use MATLAB indexing conventions to address them — g=Experime...

4 years ago | 0

Answered
Anti-aliasing filter design
Yes, generally. The lowpass function designs a FIR filter by default, and will design an efficient elliptic IIR filter if the '...

4 years ago | 0

| accepted

Answered
How to calculate circular mean every 8 cells?
One option would be to ‘decompose’ the angles into their ‘x’ and ‘y’ components, calculate the means of those, and then use atan...

4 years ago | 0

| accepted

Answered
HI all, would somebody please help me find out what should i do ? there an error in coError: File: FileScema.m Line: 10 Column: 7 Unexpected MATLAB expression.
Perhaps — A = [1 1 1.06 0.00 0.00 0.00 0.00 0.00 0.00 0.00 2 2 1.05 ...

4 years ago | 0

| accepted

Answered
How to estimate different FFT plots using Welch's method
See the documentation on the pwelch function. Its inputs are time-domain vectors (or matrices in which each column of the matri...

4 years ago | 0

Answered
Display string line by line
Use fprintf — str = {'cats', 'dogs', 'birds'}; fprintf('%s\n',str{:}) .

4 years ago | 1

| accepted

Answered
How to plot contour?
Another option would be contour3 — % Make x-y mesh grid x = [-4.2195; -5.7195; -7.2195; -8.7195; -2.7195;...

4 years ago | 0

Answered
Contour comparison with same colorbar limits.
As far as plotting them, in order to see the differences, it would likely be better either to subtract the two surfaces and plot...

4 years ago | 0

Answered
Hi, do anyone know how to remove grid from the pressure contour?
I am not certain what you want to do. Perhaps: surfc(xq,yq,pq, 'EdgeColor','none') is the desiured result? % Make x-y m...

4 years ago | 0

| accepted

Answered
From EMG data set, how can I extract 3 signals of 20 second lengths starting at 40, 80 and 120 seconds?
A relatively straightforward way to do this would be to use the buffer function to create a matrix of 20-second samples, and the...

4 years ago | 0

| accepted

Answered
Hi. I need some help about Spectrograms
I would use the pspectrum function for this with the 'spectrogram' option, since the units and results are easier to interpret. ...

4 years ago | 0

Answered
How to detect flat peaks in a signal
Without the data to experiment with, perhaps using the gradient funciton to help detect the irregularities may be helpful. Th...

4 years ago | 0

| accepted

Answered
How can I read dat file into table/cell?
The first 16 lines will have to be dealt with separately (this textscan call works to produce a (16x1 ) cell array of them) if t...

4 years ago | 0

Answered
How to use wavelet filters for peak finding ECG data
There are several options depending on what the noise is. The best way to determine that is to take the Fourier transform of th...

4 years ago | 1

| accepted

Answered
How to find the roots of a polynomial?
There are 4 roots, one of which is 0 and the others are 3-degree polynomials in . syms x t y w sympref('AbbreviateOutput',f...

4 years ago | 0

Answered
How do you determine the arguments to the `buttord` function?
I use the fft function to determine the signal spectrum, and then I use that information to select the frequencies for the filte...

4 years ago | 1

| accepted

Answered
signal processing - remove unwanted portion from the signal
Try this using envelope to outline the signals, then with a threshold value to choose the desired region — T1 = readtable('htt...

4 years ago | 0

| accepted

Answered
It is not displaying both plots
Plot ‘f’ as a funciton of ‘x’ — plot(x,f) .

4 years ago | 0

Answered
what is an acceptable values for fval in solver?
That depends entirely on the data and the model. The lsqnonlin function does not return an ‘fval’ output, however it does retur...

4 years ago | 0

Answered
I am trying to convert my data set into a chart.
I am not clear on the reason for turning a text file into a spreadsheet, however readtable and writetable would be the funcitons...

4 years ago | 0

Answered
Checking given point in circle
I would begin with the inpolygon function.

4 years ago | 0

Answered
string for x label in a plot
Try this — figure plot((1:15), sin((1:15)/2.5)) xtl = [(1:9)*1E8 (1:6)*1E9]; set(gca, 'XTick',(1:15), 'XTickLabel',xtl) ...

4 years ago | 1

Answered
Plot a circular histogram for table Data
I am not certain what the data are, how how the angles and deviations relate. Perhaps either polarplot or polarhistogram will d...

4 years ago | 0

| accepted

Answered
Solve function supports only four decimal points
I cannot run that because the ‘theta’ vector is missing. However, the Symbolic Math Toolbox calculates in extended precision....

4 years ago | 0

Answered
Get transfer function from data and known input
If you know that the system is second-order, use the ssest funciton and specify the order as 2. (State space representations ar...

4 years ago | 0

| accepted

Answered
HOW TO PLOT A GRAPH WITH A FUNCTION AND A CONSTANT
I believe the 0.45 value should actually be 0.35 — syms t Dw = 1.1; Hu1 = cos(Dw*t) Hu2 = 0.35; figure fplot(Hu1,[0 1....

4 years ago | 0

Answered
reading huge data files with repeating pattern
This is not an easy file to work with. One approach — fidi = fopen('example.txt','rt'); k1 = 1; while ~feof(fidi) fo...

4 years ago | 0

| accepted

Answered
I want vector surface plot
I am not certain what result you want. Try this — Prices = rand(1,30); % Use...

4 years ago | 0

Answered
Generating a time vector
Try this — [y,Fs] = audioread('sa2.wav'); L = size(y,1); p2 = linspace(0, L-1, L)/Fs; .

4 years ago | 0

| accepted

Answered
The graph is coming out blank
Try this — f=@(x,y) -y/.1; %función a resolver % x0=input('\n Ingrese el valor inicial de x0: '); % x inicial % y0=input('\n...

4 years ago | 1

Load more