Answered
ODE graph for multiple occurrences
Define the vector (‘gammav’ here), use a loop, and see the documentation section on Passing Extra Parameters. tspan = [0 50]...

5 years ago | 0

Answered
How to draw the tangent line on a curve
Try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/668953/Tan.xlsx') I = T1.I; V = ...

5 years ago | 1

| accepted

Answered
Determining heel strike using only kinematic data
I am not certain that I understand the problem. In these plots, it appears that the heel strike (orange lines) correspond to th...

5 years ago | 0

Answered
I am designing a filter for signal processing of the cnc milling machine data but I am unable to receive filtered signal
The filter appears to be stable, and appears to be essentially a highpass filter. See the documentation on buttord to understan...

5 years ago | 0

| accepted

Answered
Extracting data in a range
Try this — format short g A = [0.1, 2, 83, 1000; 0.4, 3, 79, 1001; 0.2, 4, 91, 1018; 0.3, 5, 75, 1095]; ...

5 years ago | 0

| accepted

Answered
filling missing values in column with obtained results
Try this — Order = [1 3 4 5 7 9 11].'; TBFi = [2993 5036 6150 6919 8862 11488 13545].'; Frequence = [6 24 32 41 59 76 94].';...

5 years ago | 0

| accepted

Answered
Non-Overlapping Moving Sum
Try this — Rain = [1,2,3,4,5,6,7,8,9,10]; rRain = reshape(Rain, 2, []) sumRain = sum(rRain) These could be combined into on...

5 years ago | 2

| accepted

Answered
Solve a system of four differential equations
Youor description is essentially correct. However, odeToVectorField does not ‘simplify’ the system, instead it converts it to a...

5 years ago | 1

| accepted

Answered
i wanna to plot the eulars formula on matlab with 3d plot
Try this — t = linspace(0, 3*pi); sig=2; x = cos(sig*t) + sin(sig*t)*1i; z = cos(sig*t); y = sin(sig*t)*i; figure plot...

5 years ago | 1

| accepted

Answered
How can I fix this error Index in position 2 exceeds array bounds (must not exceed 1).
Since ‘y’ is a (10001x1) column vector, there is no second column as referred to: y(floor(leny/n)*(t-1)+1 : floor(leny/n)*t,2)...

5 years ago | 2

| accepted

Answered
How to show axis in 3D
I am not certain what you are asking. If you want to see it in ‘true’ 3D, use the view function, and to change the axes LineW...

5 years ago | 0

| accepted

Answered
I am holding onto a scatter plot and adding data to it through a for loop. For each data set, I would like to label it in the legend but I am running into some problems.
I have no idea what the matrices are or what the different display names would be. One approach would be to get the variable ...

5 years ago | 0

| accepted

Answered
Looking for help on graphing
One approach — syms t uSol(t) = (2*exp(-(5*t)/8)*(39*cos((39^(1/2)*t)/8) + 5*39^(1/2)*sin((39^(1/2)*t)/8)))/39 figure fp...

5 years ago | 2

Answered
How to plot multiple answers on the same graph
‘The code is using AIR Tools toolbox.’ I have no idea what that is, and I can’t find it in the File Exchange. I have no idea...

5 years ago | 0

| accepted

Answered
How can I re-orient a polar scatter plot so zero is at the top?
Use polaraxes properties to do this — th = rand(1,10)*2*pi; % Angles r = rand(size(...

5 years ago | 2

Answered
How to solve two functions with two unknown variables and a set of know variable using fsolve function?
The ‘Psat_f’ function needs to have ‘T’ as an argument — % Determine saturated vapor pressure, saturated liquid pressure,& % s...

5 years ago | 1

| accepted

Answered
Convert NASTRAN Sound Pressure Level Data into Time domain Signal
I would reconstruct it with this sort of approach — Fv1 = 0:0.5:200; % ...

5 years ago | 0

| accepted

Answered
need to solve a math.
Use the Symbolic Math Toolbox iztrans function.

5 years ago | 0

| accepted

Answered
How to change the x-axis step size?
Add 'XTick' to the set call — set ( gca, 'xdir', 'reverse', 'XTick',fliplr(SF) ) SF=[12 11 10 9 8 7]; TOA=[1318.91 741.38 ...

5 years ago | 0

| accepted

Answered
Standard deviation of multiple cell arrays
I am not certain what ‘M’ actually is. Try this — M = {rand(5),rand(5),rand(5)} % Create 'M' SD ...

5 years ago | 1

| accepted

Answered
Integral of combined handle functions
Don’t use the Symbolic Math Toolbox for this. Create ‘x’ and ‘y’ as anonymous functions instead, then call them in ‘G’: x =...

5 years ago | 0

| accepted

Answered
Customizing the tick values and labels along x axis
Try something like this: x = [30.0000 28.0000 26.0000 24.0000 22.0000 20.0000 18.0000 16.0000 14.0000 12.000...

5 years ago | 0

| accepted

Answered
fitting a curve using a complex equation as shown
Use lsqcurvefit instead. It does all the ‘heavy lifting’. Try this — format long G f = @(c,w) c(1)+(c(2)*w.^2*c(4)^2./(...

5 years ago | 0

| accepted

Answered
How to integral function and plot it
‘kappat, Gammat, gammat are functions of df.’ I created them (as well as ‘A’, ‘T’, and ‘fun’) as anonymous functions of ‘df’ to...

5 years ago | 0

| accepted

Answered
change magnitude and phase angle to vector
Try this — Mag = [1;2;3;4;5]; % V Phase = [ 0; -22; -0.5; -2; -4]; % Degr...

5 years ago | 1

| accepted

Answered
Divide histogram bins by time
I am not certain what the data are, however a histogram may not be appropriate. Instead, counting the data between two dates or...

5 years ago | 0

Answered
Problem with patch function
I am not certain what you want. Try this — DL = load('XZ.mat'); X = DL.X; Z = DL.Z; figure plot(X(1,:), Z(1,:)) hold...

5 years ago | 1

| accepted

Answered
'ReturnConditions' creates error in 'solve'
Provide output variables, and outputs to return the parameters and conditions: syms i1 i2 gamma phi w r firstfoc=( (2+r)*w/...

5 years ago | 1

| accepted

Answered
Plot values as a box
One approach — barvals = sort(rand(2,5),'descend') % Matrix Defining Limits Of Bars figure plot([1...

5 years ago | 1

| accepted

Answered
I'm trying to plot .csv file
The ‘Time’ variable is a duration array, so the timeofday call is not necessary. Try this — T1 = readtable('https://www.mat...

5 years ago | 0

| accepted

Load more