Respondida
My calculation for respiratory rate shows the same bpm for my 3 waveforms.
Perhap;s this — LD1 = load('USaverageImageIntensity_R1.mat'); Corr(:,1) = LD1.Corr; LD2 = load('USaverageImageIntensity_R2.m...

alrededor de 3 años hace | 0

Respondida
Add initial conditions when using laplace function
That requires a subs call for each equation. (The sympref call here makes this easier. You can remove it later if desired.) ...

alrededor de 3 años hace | 1

| aceptada

Respondida
3D plot two curves
Perhaps something like this — p = linspace(-pi/2, pi/2, 50)+pi/2; x1 = cos(p); y1 = 1.01*sin(p); x2 = cos(p); y2 = 0.99*...

alrededor de 3 años hace | 0

| aceptada

Respondida
Create a fit for data with a polynom first degree
I would expect R² to be 1 (or close to it) if a lilnear model is a perfect firt to the data. Using fitlm — x = [0.1201 0.13...

alrededor de 3 años hace | 0

| aceptada

Respondida
unable to plot columns of multiple cells
Logarithms of time variables do not actually exist (probably anywhere), however there are ways to get round that problem. Thi...

alrededor de 3 años hace | 1

Respondida
how to fit the coupled differential equations and get the coefficients?
See: Parameter Estimation for a System of Differential Equations (and similar posts) for an easy way to estimate the parameters....

alrededor de 3 años hace | 0

Respondida
Trouble using the ode45 input
The call to ‘f’ in the ode45 call (and the correct ode45 call) should be: [t,Y] = ode45(@(t,y)f(t,y,omega0), [0, 15], [y0,v0])...

alrededor de 3 años hace | 0

Respondida
Entry and exit points / trajectories through a rectangle (orbits)
This should be a relatively straightforward interpolation problem in that the only calculations necessary should be to first fin...

alrededor de 3 años hace | 0

Respondida
calculate boolinger bandwidth using matlab function
The std2 function takes the standard deviation of all the elements in an array (it only has one argument, that being the entire ...

alrededor de 3 años hace | 0

| aceptada

Respondida
strange behavior of plot and freqz
Thje angle functon returns angles in radians. If you add a call to the rad2deg function, the results will be in degrees, and t...

alrededor de 3 años hace | 0

| aceptada

Respondida
System Identification - Matlab 2023a not launching
Try running these from a script or your command window — restoredefaultpath rehash toolboxcache It might also be necessary...

alrededor de 3 años hace | 3

| aceptada

Respondida
Root Locus from equation?
It might if you aske it to and give it a causal system it can work with — s = tf('s'); eqn = @(u) 1 / (1472*s^4 - 99.2*s^3 -2...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to implement Complex Exponential Function Using Matlab ?
I am not certain what you are doing or what ‘w1’ and ‘w2’ are, so using my best guess — format longE F = 40E+3; N = (0:20).'...

alrededor de 3 años hace | 1

| aceptada

Respondida
Parse through .txt file to create vector
Use the fixedWidthImportOptions function and readmatrix (since there are apparently no header lines or variable names) — opts...

alrededor de 3 años hace | 0

| aceptada

Respondida
Change intensity of zplane figure
Changing the properties requirees a bit of handle-spelunking, however it is possible. Try this — [z,p,k] = ellip(4,3,30,20...

alrededor de 3 años hace | 1

| aceptada

Respondida
color region in the plot based on the values
Try this — LD = load('matlab.mat'); A = LD.A thrshld = 5; Lv = A(:,2) > thrshld; idx1 = find(Lv); idx2 = idx1(diff([0; ...

alrededor de 3 años hace | 0

| aceptada

Respondida
Problem with fill()/patch() between two lines in R2023a
I am not certain what result you want. For column vectors, use flip (or flipud) and concatenate the vector arguments vertica...

alrededor de 3 años hace | 1

| aceptada

Respondida
xlim in boxchart not working
It would help to have the data and code to test, since I cannot find any examples in the boxchart documentation that could prov...

alrededor de 3 años hace | 0

| aceptada

Respondida
Is it possible to implement an array as a variable inside a state space matrix?
You would have to integrate your model using one of the numerical integrators such as ode45. It is definitely possible to use ...

alrededor de 3 años hace | 0

Respondida
Fitting an exponential equation to this data with CFtool
I get this result with fitnlm — y=[10 80 120 180 280 415 680 972 1178 1322 1445]; t=[50 300 410 600 900 1190 1797 2400 3000 3...

alrededor de 3 años hace | 0

| aceptada

Respondida
Get datetime from variable name
When I look at the .png files, all the values appear to be the same among all the other variables. I am not certain what you wa...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to create a FRF graph of the real and imaginary parts of a signal
It appears that is its default behaviour if you request outputs — load modaldata figure subplot(2,1,1) plot(thammer,Xhamm...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to label names in bar graph?
One approach (using xticklabels introduced in R2016b, as was string) — Data = rand(8,3); xlables = ["THD" 3 5 7 9 11 13 15]; ...

alrededor de 3 años hace | 0

| aceptada

Respondida
I loaded a data file, but why is matlab not able to name the different columns of data within the txt file?
It would be best not to convert the .csv file to a text file (or to anything else) initially. Instead, use readtable to read ...

alrededor de 3 años hace | 0

Respondida
Error "First input argument must be a function handle." function used fzero Please help to resolve the issue. Thanks
The assignment statements are out-of-order (so ‘n’ and ‘hf_0’ do not yet exist when they are assigned in ‘LHS’) and two functon...

alrededor de 3 años hace | 1

| aceptada

Respondida
how to code equation
Using the Symbolic MAth Toolbox — syms xi lambda psi Eqn = psi - log(psi) == -3 * -4 * log(lambda/2) + 4 * log(xi) + 2 * la...

alrededor de 3 años hace | 0

| aceptada

Respondida
Error when using interpolation method
The serial numbers change position because timetable arrays require that the time vector be the first column, regardless of how ...

alrededor de 3 años hace | 0

| aceptada

Respondida
want to calculate std_value and mean_value
There are 395449 ‘Inf’ values in ‘img’ (probably the result of the subtraction in the denominator of the transformation) so thos...

alrededor de 3 años hace | 0

| aceptada

Respondida
Finding y-intercept for loop
I made some minor changes to your code, and added a loop to return reasonably precise values of ‘y’ for each intersection. Your...

alrededor de 3 años hace | 0

| aceptada

Respondida
Removing the noise/filter
The signal has broadband noise, so ffrequency-selective filters will not work well to limit that noise. The best approach fro b...

alrededor de 3 años hace | 0

| aceptada

Cargar más