Beantwortet
Formatting exel import in readtable()
It would help to have the Excel file to experiment with. In its absence see the documentation on detectImportOptions and expe...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
Application of Logical operators
Perhaps something like this — figure hold on for k = 1:4 patch([1 2 2 1]+2*(k-1), [1 1 4 4], 'b', 'FaceAlpha',0.5) ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Does MATLAB have inverse tangent integral TI2(z)?
The polylog function exists in the Symbolic Math Toolbox. It supports symbolic and numeric (double) arguments.

etwa 4 Jahre vor | 0

Beantwortet
How do I apply a function to every resulting element of a buffer function?
‘How do I apply a function, e.g. hamming(256), to each column?’ Do an element-wise multiplication — v = randn(256,2) vh ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I fix "Error in sym/subsref (line 898) R_tilde = builtin('subsref',L_tilde,Idx); ?
Perhaps — syms xQ xQ = sym('xQ',[1 3]) xQ2 = xQ(2) See the documentation on sym for details.

etwa 4 Jahre vor | 0

Beantwortet
Second order to first order system
One approach (that involves doing an interim Laplace transform on the differential equation) — omega = 2; zeta = sqrt(3)/4...

etwa 4 Jahre vor | 0

Beantwortet
Saving population individauls for each generation of GA Multiobjective optimisation.
I created a function for ga (not the multiobjective version) that will do that. See if the approach in How to save data from Ge...

etwa 4 Jahre vor | 1

Beantwortet
Sometimes my 2-D plots won't show up.
Normally, that sort of problem is caused by using matrix division (/) instead of element-wise array division (./) however the ‘x...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
lsqcurvefit - initial condition
The problem with nonlinear parameter estimation is that the results can be highly dependent on the initial parameter estimates. ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Want to create a time vector
I have no idea what you want to do, although the linspace function may be a more precise approach — t = -10:0.01:10-0.01 ...

etwa 4 Jahre vor | 0

Beantwortet
Why am I not getting the m array?
That clears up much. Plotting them is simply this — %% data X=[6,7,10,14,13,9]; Y=[12,9,7,8,10,14]; xi=10; yi=10; ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
[SOLVED] Semi-colon not supressing output
I do not see any missing semicolons in the file, so the most likely problem is that there is one missing when you call the funct...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to Save Multiple Figures in Loop?
Perhaps this instead — saveas(gcf, sprintf('File%02d_6.tiff',i), '-dtiff'); Specifing the numeric field as '%02d' creates a t...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Sum, then filter, then re-separate data
It would help to have the sampling frequency. I am not certain what you want to filter, however for now I am assuming that is...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Audio Pitch Manipulation Through Time
I am not certain what you want to do. One option could be the resample: function.

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to create a vertical offset line
Try something like this — zv = sort(rand(4,1)) % Define 'z' Val...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Define time axis interval for 100 samples
I am not certain what you want to plot. Perhaps — % sampling frequency (fs) is 6000 Hz fs1 = 6000; % I want to take 100 s...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Time + Acceleration Fourier transform into Amplitude + Frequency
The ‘Time’ values are not unique (they likely need an additional digit of precision) so they had to be processed by taking the m...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
create a function from temperature data
Another option: Curve fitting to a sinusoidal function

etwa 4 Jahre vor | 0

Beantwortet
Find the position of numbers in array
I am not certain what you are asking. Perhaps using the ismember (or ismembertol) function will do what you want.

etwa 4 Jahre vor | 0

Beantwortet
How to remove the AWGN noise from data?
I would simply use a moving average filter, for example movmean, or choose one of the options in smoothdata, to eliminate normal...

etwa 4 Jahre vor | 0

Beantwortet
Numeric array to serial datetime
Perhaps something like this — Feed{:,1} = datetime('29-Sep-2022'); Feed{:,2} = '14.45'; DT = Feed{:,1} + timeofday(datetime(...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Legend colours are different from the plot
Thank you for the ‘r’ anonymous function! I can now run your code. The code was plotting the contours as well as the vector...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Find the polar representation of (𝑖 − √3 )
Perhaps: phi = angle(1i - sqrt(3)) % Radian Angle Of Complex Number mag = abs(1i - sqrt(3)) ...

etwa 4 Jahre vor | 0

Beantwortet
How to implement either a High/Low Pass filter on accelerometer data.
‘For my accelerometer, I set the output data rate to 50hz so the bandwidth would be 25hz and sampled at 10hz (10 times /sec) to ...

etwa 4 Jahre vor | 0

Beantwortet
I have an equation that relies on previous values to get the next.
I am not certain how the ‘P’ vector enters into this. If: P1 = P(1) = 1 P2 = P(2) = 2 P3 = P(3) = 3 in this instance, then...

etwa 4 Jahre vor | 0

Beantwortet
Please Help me, How to raise the quality of the attached figure after drawing it on Matlab
What do you want to do with it? F = open(websave('T','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1138680/...

etwa 4 Jahre vor | 0

Beantwortet
How to solve 2nd ODE equation in numerical and analytical method at same plot graph?
See my Answer in How to solve 2nd ODE equation in numerical and analytical method at same plot graph? and make the appropriate c...

etwa 4 Jahre vor | 0

Beantwortet
How to solve 2nd ODE equation in numerical and analytical method at same plot graph?
Interesting problem! I was curious enough to do the entire simulation to see what the results are — syms x(t) x0 Dx0 T Y ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
fft of a signal
You need to normalise the fft result by the length of the signal: X_fft = fft(y1,nfft)/L; Otherwise, using my test signal, it...

etwa 4 Jahre vor | 0

| akzeptiert

Mehr laden