Beantwortet
Coherence corticomuscular with mscohere
The first output of mscohere is a vector, and is intended to show the magnitude-squared coherence of the two signals. It seems ...

fast 3 Jahre vor | 0

Beantwortet
Dot product of two vector
My pleasure! ‘... how to set the coding if a3.n2 the answer will be in scalar which is 0 and if a3.n3 the answer will be 1 .....

fast 3 Jahre vor | 0

Beantwortet
Operator '*' is not supported for operands of type 'function_handle'
The first time this occurs is here (line 35): Aup = @(xup)((sqrt(xup.^2 + (m1u*Rp)^2)) - (m1u*Rp)) ./ ((sqrt(xup.^2 + (m1u*Rp)...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Some questions about using Least squares for scatter fitting
Depending on how dense the points are and how many you want to fit, it is possible to come up with a reasonable approximation. ...

fast 3 Jahre vor | 0

Beantwortet
I am struggling with integrating a function.
‘How can I fix this?’ Be certain that tthe expression matches the symbolic expression in the figure. (It currently does not....

fast 3 Jahre vor | 0

Beantwortet
Pink noise with specific power P
Create a scaling constant defined by: k = sqrt(DesiredPower / ActualPower) then multiply that by the original vector. Equi...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
how can i plot many series of values in the same plot
Looking a bit more carefully at your posted code, I believe the problem is that you are creating a new figure in each loop itera...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Find f if f′′(x) = 4−6x−40x3, f(0) = 2 and f′(0) = 1
Use the Symbolic Math Toolbox. syms f(x) x Df = diff(f); D2f = diff(f,2); This is obviously homework, so I leave the rest...

fast 3 Jahre vor | 0

Beantwortet
How to generate matrix in MATLAB
Try this — N = 32; C = 33; Wc = exp((1j*2*pi)/C) P = ones(N+1,C); P(2:end,2:end) = Wc.^((1:N)'*(1:C-1)) The approach ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
what is wrong with my FFT from a Shaker with accelerometer mounted
I compared your fft code with my stock fft code and got the same result. I believe that the problem is the sampling frequency...

fast 3 Jahre vor | 0

Beantwortet
how to assign a numerical value to an image based on the gray scale present in the image
I am not certain what you want, however the imhist function may help calculate it. This approach does a simple linear regress...

fast 3 Jahre vor | 0

Beantwortet
How to color or patch the region between a curve and the x axis
I posted this in response to your Comment (I’ve since deleted my responding Comment), so I’m now posting it as an Answer here — ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
spectrogram unit change from dB/Hz to linear scale
If you want dB rather than dB/Hz, use the pspectrum function with the 'spectrogram' option argument. To get magnitude from dB...

fast 3 Jahre vor | 0

Beantwortet
Why doesn't timezone work with datetime
The timezone function is from the Mapping Toolbox, and its results are not compatible with the datetime function. The otherwise...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Why damping amplitude the amplitude shifting position of y azis
It would help to have the file to demonstrate with it, however that may not be absolutely necessary. The signal in the file (...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Evaluating a complex equation
Preallocate ‘Y’ as: Y=zeros(8,numel(t)); add a second dimension to ‘Y’ in the assignment to it: Y(n,:) = ... and add ‘t’ t...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Why low pass filtering requires long duration time signals?
1. The problem with needing long signals is primarily due to using an FIR filter, since FIR filters are usually long in order t...

fast 3 Jahre vor | 0

Beantwortet
Concatenating Arrays end to end 1D
One option is to convert ‘Duplicates’ to a cell array (using num2cell) to make it compatible with the other values — Blank='-'...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
wny fft does't work with different signal?
Thbere is a farily significant D-C or constant offset in ‘data(:,2)’ and that hides all the spectral peaks of lower magnitudes. ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the intersection values of line and curve?
Try this — % clc % close all d1 = 0.4;d2 = 0.6;d = d1 + d2; n1 = 3.46;n2 = 1.5; lambda = linspace(400e-3,800e-3, 100000)...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
color map with specific range
I used 'filled' here because otherwise the yellow points may be difficult to see — figure imshow(imread('tri.jpg')) x = 1:...

fast 3 Jahre vor | 1

Beantwortet
look up data from table (either from excel, table in matlab, or text fil) using App Developer
Another option for the lookup — Table = readtable('FluxDataInterpolated.xlsx'); inclination = Table{1,2:end}; altitude = Tab...

fast 3 Jahre vor | 0

Beantwortet
The least square with changing number of lines of matrix
I am not certain what you want. This calculates regressions on each column of ‘y’ and then plots it in the same colours as th...

fast 3 Jahre vor | 0

Beantwortet
Create a 3D plot with shadow length, altitude, and time.
Filling the inside of the 3D curve is straightforrward — run('shadecode.mlx') T1 = readtable('Shadedata.xlsx') t = T1.Time...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Failure on combining 2 timetable
Experiment with the synchronize function to see if it will do what you want. EDIT — (21 Aug 2023 at 15:57) To illustrate —...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
System response from input and output signals
First, use the System Identification Toolbox (iddata then ssest and compare then lsim) or the Signal Processing Toolbox (invfreq...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to create nested legend
One option is to put each ‘h’ in a separate column — h = 300 : 75 : 525; w = 60 : 30 : 180; [H,W] = ndgrid(h,w); figure...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Averaging data from seconds to three seconds because of different time variables
I am not certain that it is possible, however if it is, some combination of retime and synchronize could work. EDIT — (21 A...

fast 3 Jahre vor | 1

Beantwortet
How to make contour smooth
There are a few options, one being to plot fewer levels, and the second being to downsample the matrix using interp2 and also ch...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab figure: Replace xaxis with custom labels
Another approach — sun = sin((0:240)*pi/25).^2 .* exp(-0.015*(0:240)); figure plot(sun) figure plot(sun) xt = xticks;...

fast 3 Jahre vor | 0

Mehr laden