Respondida
Plotting error bars on curve
I really can’t do anything without the data. The rest of the code (that imports the data and processes it including calculating...

alrededor de 1 mes hace | 0

| aceptada

Respondida
3D Figure from Excel (x,y,z)
It always helps to have your data. A picture may be worth a thousand words, however on MATLAB Answers, data is worth a thousand...

alrededor de 1 mes hace | 0

| aceptada

Respondida
MATLAB FFT bin size
I agree with @Steven Lord, however there are ways to do what you want with the MATLAB fft function. I wrote a small utility fun...

alrededor de 1 mes hace | 1

| aceptada

Respondida
I would like to plot an interpolated 3d Surface between two faces, i.e. the third face of a truncated cone. my plot isn't working but I'm not sure what is wrong
TThis does not look like a cone to me at all. What do you want to do? r1=0.5; % t1=[(0:0.1:2*pi),0]; t1=0:0.1:2*pi; X1=...

alrededor de 1 mes hace | 0

| aceptada

Respondida
Strange issue with mean, max, and min of vector?
See the plotted values — load('diffT.mat') whos('-file','diffT') % diffT neg_vals = nnz(diffT < 0) [lo,hi] = bounds(d...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How to iterate over data sets?
If you have the Signal Processing Toolbox, use the buffer function for this. dummy1 = (1:60).' bfr1 = buffer(dummy1, 12); ...

alrededor de 1 mes hace | 0

Respondida
File Issues after copying from another PC
The resample function is part of the Signal Processing Toolbox. You need to have the Toolbox licensed and installed before you ...

alrededor de 1 mes hace | 1

| aceptada

Respondida
Removing outliers from the data creates gaps. Filling these gaps with missing values or the median of surrounding values does not address the issue.Why?
Your version/release is not stated, however beginning with R2017a, the filloutliers function has been available. Using the 'med...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How do I find the x and y coordinates of a fitted Gaussian curve at a given slope?
Once you have the equation for the gaussian, the rest is striaightforward. Find the midpoint in the mamplitude to determine th...

alrededor de 1 mes hace | 0

Respondida
Optimal Cutoff Frequency for Static Noise Detection in ECG Signals?
You have not defined ‘static noise’ so I have no idea what you’re actually filtering. The bandwidth of a normal EKG is genera...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How do I calculate the duration between two times?
This seems to work — load('results_start_array.mat') whos('-file','results_start_array.mat') load('results_start_end.mat')...

alrededor de 1 mes hace | 0

| aceptada

Respondida
how to fill color in 1/4 th circle
A new function in R2024a is the polarregion function. Try this — figure thetas1 = [0.5 1]*pi; radii1 = [1 2]; polarregi...

alrededor de 1 mes hace | 0

Respondida
How to interpolate values given a starting and end point
Use the rescale function — Vrec = [18.2, 18.1, 18.0, 17.9]; Vrange = [50.6 50.3]; Vres = rescale(Vrec, Vrange(2), Vrange(1...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How can i make 3D graph with multiple 2D graphs?
If the vectors all have the same sizes, just plot them as a matrix using the surf function. t = linspace(0, 1, 25).'; ...

alrededor de 1 mes hace | 2

| aceptada

Respondida
How to change the spectrogram magnitude to linear?
I susp[ect that you may actually want to use the pspectrum function with the 'spectrogram' type. To understand the differences ...

alrededor de 1 mes hace | 0

Respondida
Best analysis to show how EEG ranges are similar
I’m not certain what you actually want to do. I would be tempted to use Fourier transforms, specifically stft, and compare th...

alrededor de 1 mes hace | 0

Respondida
How to solve non_linear equation
Solve it symbolically — syms z Eqn = z^3 == log(z)*(482036/0.18525)^5 Z = solve(Eqn) Z = vpa(Z) format longG Zd = doub...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How to find the intersection of linear regression model and yline
Use the interp1 function for this — T(:,1) = [0 1 2 3 4 5].'; T(:,2) = [0 1 2 3 4 5].'; x = T(:,1); y = T(:,2); p = poly...

alrededor de 1 mes hace | 0

| aceptada

Respondida
I am getting this warning "Matrix is singular to working precision." and my surf plot is not showing.
You need to do element-wise opeerations in your ‘u’ function, so: u = @(x,y)(-4*pi*exp(-5*pi*pi*0.5).*cos(2*pi*x).*sin(pi*y))....

alrededor de 1 mes hace | 1

| aceptada

Respondida
Designing Yulewalk Filter for a Bandpass Type
The yulewalk filter will be a FIR filter, whiel the original filter is an IIR filter. A FIR filter generally requires a much hi...

alrededor de 1 mes hace | 0

Respondida
Confidence interval calculation. Cannot compute confidence interval for imaginary values.
The parameters aren’t complex. All the results are real. The problem with your code is that in MATLAB, function arguments an...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How to correct the recording of a daamaged accelerometer in earthquake analysis
If you have the Signal Ptocessing Toolbox, an alternative approach would be to use the highpass (or bandpass to also eliminiate...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How to use previous answer in new calculation n times
Perhaps something like this — A=[0.3 -0.2; -0.6 0.8]; B=[-14;2]; x=[1;2]; y = x; for k = 1:10 y = A*y+B; ym(:,k)...

alrededor de 1 mes hace | 0

| aceptada

Respondida
I have purchased the Signal Processing Toolbox but still get an error when trying to use a function
I am not certain what the problem is. imshow(imread('Screenshot 202....49.59 AM.png')) First, run these from a script or you...

alrededor de 1 mes hace | 0

Respondida
difference between 2 values in a vector
Try this — x = [0.2 0.0 0.0 0.0 0.25 0.0 0.0 0.0 0.3 0.0 0.0 0.4 0.0 0.0 0.0 ...

alrededor de 1 mes hace | 0

| aceptada

Respondida
result spectrogram from lowpass filter still pass frequency above the treshold
See if: y=lowpass(yori,10,100, 'ImpulseResponse','iir'); improves the result. .

alrededor de 1 mes hace | 0

| aceptada

Respondida
F1(u,v)=0,F2(u,v)=0 with 4 parameters a,b,c,d, 3 of which (a,c,d) are given
a = 1.5; c = 0.4; d = 0.9; b=0.1:0.1:9; syms u v F1 = @(u,v,b) u*(1 - u) - b*u*v/(c*u + 1); F2 = @(u,v,b) 0.5*b*u*v/(c*u +...

alrededor de 1 mes hace | 0

| aceptada

Respondida
Unrecognized function or variable 'del'.
That should actually work — tic n = 0; for del=0.0:0.4:pi n=n+1; pe(n)=1.2*sin(del); end toc pe A mnore effi...

alrededor de 1 mes hace | 0

Respondida
How to make sure that the horizontal axes of two figures align?
If the figures are open at the same time, you can use the linkaxes function. If they are not, you can use xlim one one figure a...

alrededor de 1 mes hace | 0

Respondida
csv to fft matlab
You cannot calculate the Fourier transfomors without a corresponding sampling frequency or time vector. Assuming the sampling...

alrededor de 1 mes hace | 0

Cargar más