Answered
Fitting Kinetic model to estimate kinetic parameter.
I was able to get a reasonably decent fit with the ga function: Elapsed Time: 3.281440000000000E+02 00:05:28.144 Fitness...

4 years ago | 0

Answered
Problem with function envelope
The transition in the signal baselline is confusing envelope. It may be necessary to change the ‘np’ value, possibly to a lower...

4 years ago | 0

| accepted

Answered
Needing to increment a number within a sin function
Try something like this — S = 10*sin(diag(0:19)) See the documentation on diag for details. .

4 years ago | 1

Answered
Normalizing data to 100 Percent
One option with normalize is to use the 'range' method or methodtype, and multiply the result by 100. See the documentation for...

4 years ago | 0

| accepted

Answered
Matlab Integral function for a self teaching beginner
The integral function numerically integrates the function supplied to it over the variable range defined in the function call. ...

4 years ago | 0

| accepted

Answered
Contourf plot Yscale log2 vs log10
You can change the base of the logarithm by dividing it by the desired base, then use the appropriate code to change the tick la...

4 years ago | 0

| accepted

Answered
I can't figure out this array issue using an integral command
Use the 'ArrayValued' name-value pair — format longE ZZ=linspace(0,100,10); Time=linspace(0,100,10); zeta=1; D=.36; con...

4 years ago | 0

Answered
How to use logical indexing to return elements of a signal?
Try this — StartIndices = find(Lv2); StartIndices = StartIndices(1:end-1); EndIndices = find(Lv1); EndIndices = EndIndices(...

4 years ago | 0

| accepted

Answered
Requirements for Matlab and Simulink
See for example System Requirements for MATLAB 2022a. There are links on that page for other releases and other information.

4 years ago | 0

Answered
New line when writing to a text file using fprintf?
The newline character for fprintf and its friends is '\n', so perhaps: fprintf(fo,'{translate([%d,%d,0]);cylinder(%d,%d,%d);}\...

4 years ago | 0

| accepted

Answered
Why and what should I do if a signal ampiltude decreased so much after it passed a low-frequency and a high-frequency butterpass filter
The filtering operation removed much of the signal energy. To amplify it, just multiply it by a constant: D2 = D2*10; Choo...

4 years ago | 0

| accepted

Answered
How to identify both sides of a flat peak (flat part of a signal)?
Use the islocalmin (introduced in R2017b) function instead of findpeaks — LD = load('signal.mat'); force_y_r = LD.force_y_r; ...

4 years ago | 0

| accepted

Answered
Plots in a loop
Perhaps: title(sprintf('data %3d',k)) .

4 years ago | 0

Answered
why do i get ylabel error?
The error shown, that the string is interpreted as an index leads me to believe that you have a variable named ‘ylabel’ and MATL...

4 years ago | 0

Answered
How to remove certain tick labels from xaxis in line plot
Try something like this — t = linspace(0, 3000, 3000); s = (sin(2*pi*t*5)>0.9)*6.8 + 0.1; figure plot(t, s) figure pl...

4 years ago | 0

| accepted

Answered
Transform data from long to wide format
Use unstack, preferably the same unstack call with the same MATLAB version that produced the ‘data_wide’ file. Experiment wit...

4 years ago | 0

Answered
How to ignore peaks and find the x-axis location of the others?
I am not exactly certain what you want, however selecting and plotting the first peak after each valley (minimum of the inverted...

4 years ago | 0

| accepted

Answered
Area Under the Curve value from txt file that has two columns
Use either the readtable or readmatrix function to import it, then trapz to do the integration. The integration would go some...

4 years ago | 0

Answered
How do I make custom power trendline plots?
Try something like this — yfcn = @(b,x) b(1).*sqrt(x) + b(2); x = 0:0.5:10; y = rand(size(x)); [B,fval] = fminsearch(@(...

4 years ago | 1

| accepted

Answered
Creating vector in ODE Function to plot graphs
Probably the easiest way to return the derivative is to use a loop to calculate it from the original function using ‘tSol’ and t...

4 years ago | 0

| accepted

Answered
how to calculate duration of peaks
Try this — LD1 = load('t.mat'); ty = LD1.ty.'; LD2 = load('y.mat'); sh1 = LD2.sh1; y = sh1.'; [pks,plocs] = findpeaks...

4 years ago | 1

| accepted

Answered
determine noise amplitude to calculate error of graph
I am not certain what you want to do. Using the information from your previous post I would do something like this — T1 = r...

4 years ago | 0

Answered
Impedance parallel formula in Matlab
It is straightforward to create your own function to calculate it — Zpar = @(z) 1./sum(1./z); % Calculates P...

4 years ago | 0

| accepted

Answered
Find peaks in data without using signal processing tool
The findpeaks function is in the Signal Processing Toolbox, and since you do not have access to it, use the core MATLAB islocalm...

4 years ago | 1

| accepted

Answered
How to use str2num function to extract a specific year from the array?
C = {'2003-09-30T20:32:34Z' '2003-09-30T20:47:34Z' '2003-09-30T21:02:34Z' '2003-09-30T21:17:34Z'...

4 years ago | 1

| accepted

Answered
Find intersection of points in a graph
It would help to have the actual data. Assuming that ‘y2’ is either a constant or a line defined as a function of the same inde...

4 years ago | 2

| accepted

Answered
how to plot 3 different vectors without any relation, in a 3d plot
I am not certain what you want, so my best guess — X=[1 2 3]; Y=[4 5 6]; Z=[11 22 33]; xv = linspace(min(X), max(X), 5); ...

4 years ago | 0

| accepted

Answered
Using the lowpass function
The lowpass function does not display anything unless you leave the trailing seimcolon off of the lowpass call. It will design ...

4 years ago | 0

| accepted

Answered
Can anyone help me to plot jet half width. I have already plotted centerline velocity.
I still have no clue as to what you want, since I have no idea which axis is the velocity since they are only labeled ‘X axis’ a...

4 years ago | 0

Answered
I want to integrate this function but I keep getting errors
Try something like this — [L,I,E,F] = deal(rand,rand,rand,rand); % Use Correct Values func = @(initial) L/...

4 years ago | 0

| accepted

Load more