Beantwortet
How do I perform several iterations in MATLAB?
Since ‘y’ appears to be a column vector, the loop is not necessary. Just use: L = 1.56*(y.^2)*tanh(61.58/L); If you are loo...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do i find x from given y that is closest to my peak or at x=0?
One approach — x = linspace(-10,10,500); y = 1 - x.^2; L = numel(x); yval = -6; zxi = find(diff(sign(y -yval))); for ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Symbolic function Gaussian Beam
You need to use element-wise operations. See the documentation on Array vs. Matrix Operations for details. Also, you can use...

mehr als 2 Jahre vor | 0

Beantwortet
Using repelem to vertially concatonate non-numeric variable
I am not certain what you want to do, however the repmat function might be a better choice, since it allows the dimensions to be...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Is using alphabetical characters in the area (x,y) syntax possible?
‘Is using alphabetical characters instead of numeric arguments as x-variables in the area (x,y) syntax possible?’ Yes, in the...

mehr als 2 Jahre vor | 0

Beantwortet
How to plot Rankine Half Body Streamlines
I can’t run that because the relevant data aren’t provided. Tha atan calls could be the problem. Substituting‘atan(y/x)’ with ...

mehr als 2 Jahre vor | 1

Beantwortet
Matlab - inputs must be scalar when using linspace
The problem is that the original ‘i’ value in each loop returned a vector, and that vector became the subscript for the ‘velocit...

mehr als 2 Jahre vor | 0

Beantwortet
solve not working for symbolic equation
When in doubt, plot the function. The ‘ib’ function has a minimum value of -146.3 and a maximum of -28.2. It never crosses...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to know exactly what row (or index number?) in a table based on user input?
The file posted in your previous Question had only time values. Assuming the data you refer to here is different, the matchin...

mehr als 2 Jahre vor | 0

Beantwortet
Voltage find equation diagramm
Perhaps this — imshow(imread('LI.jpg')) T1 = readtable('Versuch.txt'); T1.Properties.VariableNames = {'Time','Voltage'} ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

Beantwortet
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.) ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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*...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 1

Beantwortet
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....

mehr als 2 Jahre vor | 0

Beantwortet
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])...

mehr als 2 Jahre vor | 0

Beantwortet
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...

mehr als 2 Jahre vor | 0

Beantwortet
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 ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

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

mehr als 2 Jahre vor | 3

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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).'...

mehr als 2 Jahre vor | 1

| akzeptiert

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

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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; ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 2 Jahre vor | 0

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden