Answered
how to sampling the signal in order to match the two signal?
The first 2 column in ‘TORQUE’ are missing, so they are removed here. % C1 = readcell('https://www.mathworks.com/matlabcentra...

5 years ago | 0

| accepted

Answered
Marker indices for a plot error
From the documentation on MarkerIndices: ‘Indices of data points at which to display markers, specified as a vector of positiv...

5 years ago | 0

Answered
how to do sampling and filtering for the data?
There is no reason to downsample it. Just resample it to a 1 kHz sampling frequency (since the sampling intervals are not regul...

5 years ago | 0

| accepted

Answered
addition of more variable that not exist in the CSV wile using readtable
One option is to use fileread or readcell to see if there is anything in those locations. Since most .csv files are actually Ex...

5 years ago | 0

| accepted

Answered
How can I align text to the ylabel in a plot?
One approach — figure plot(1,1) yh = ylabel('label'); set(yh,'Units','Normalized'); ylabPos = get(yh,'Position'); text(yl...

5 years ago | 0

Answered
Produce a vector B which contain the average of each column of matrix A
Use the mean function.

5 years ago | 1

Answered
Write e bar in plot lable
Use '$\bar{e}$' and specify 'Interpreter','latex' to get — so: xlabel('$\bar{e}$', 'Interpreter','latex') This works in M...

5 years ago | 0

Answered
find overshoot, undershoot, rise time and fall time on a non step response function
Use the System Identification Toolbox functions such as iddata and ssest to identify and estimate the system. Then, use stepinf...

5 years ago | 0

| accepted

Answered
Plots overlaying each other
The figure windows are on top of each other. Nothing is replaced. They just have to be moved to different positions. The ne...

5 years ago | 0

Answered
How to plot multiple curves in a single figure by varying a parameter?
No loop required. Try this — syms c x y Eqn = y^2/2-cos(x) == c y = solve(Eqn,y) yfcn = matlabFunction(y, 'Vars',{x,c...

5 years ago | 0

| accepted

Answered
How can i simplify this
I have no idea what you are askiing. See if the all or any functions will work with whatever you are doing. . .

5 years ago | 0

Answered
10 raised to the power
Put simply: format if you are viewing them in the Command Window. This is likely also due to floating-point approximation error...

5 years ago | 0

| accepted

Answered
Solving 3 Simultaneous Exponential Equations
The ‘X^y’ term is essentially just a slope in a linear relationship, and any values of ‘X’ and ‘y’ that equate to it will work. ...

5 years ago | 0

| accepted

Answered
question about generate a toneburst ( sound) in every ear
Try this: Fs = 44100; % Sampling Frequency Fc = 250; % Tone...

5 years ago | 1

| accepted

Answered
How can I create an idealized cycle from quasiperiodic data?
This is called ‘ensemble averaging’. See for example Combining repetitive curves into one average curve and similar posts. Tr...

5 years ago | 1

| accepted

Answered
What is the speed at pulses for tachometer signal?
The ‘RPM at pulses’ is the computed RPM for each pulse interval. It is relatively easy to demonstrate that. The ’final compute...

5 years ago | 0

| accepted

Answered
bandwidth returns inf on transfer function
From the documentation — ‘fb = bandwidth(sys) returns the bandwidth of the SISO dynamic system model ...

5 years ago | 0

Answered
How to adjust legend
I am not certain what you want, however the approach in Specify Legend Labels During Plotting Commands (using the 'DisplayName' ...

5 years ago | 0

Answered
Having trouble to calculate the area under curve for each peaks and display the area under curve in graph?
It depends entirely on what the definition of ‘peak’ is, and if the data first need to be detrended. T1 = readtable('https:...

5 years ago | 0

| accepted

Answered
Matlab shows symbolic result with new variabels
The approach in Abbreviate Common Terms in Long Expressions might do what you want. .

5 years ago | 1

| accepted

Answered
How to filter a signal?
First, the data are really noisy, and exhibit broadband noise that will be impossible to eliminate with a frequency-selective fi...

5 years ago | 0

| accepted

Answered
How to plot a vertical line at f(x)=0.5
Use the xline and either the patch or fill functions: xv = 0.5; yv = 0.5; figure hold on xline(xv) yline(yv) patch([[0 x...

5 years ago | 0

| accepted

Answered
Get one best curve (graph) from 5 sets of curve.
The plotted data all appear to have a zero intercept, so to get one slope for all of them, this works: Set1 = [0:0.1:0.6; (0:0...

5 years ago | 0

Answered
Why do I get NaN?
There is one NaN value in ‘giuliayearlyDELTA2.Height’. However, the str2double call is not necesary. Just do: D = giulia...

5 years ago | 0

| accepted

Answered
Why isn't my graph plotting?
That is because using matrix right division (/) it is plotting onlly one point, and while this would work if it also plots marke...

5 years ago | 1

| accepted

Answered
Complex roots of sin(2*x)-2*x=0
Providing fsolve with a complex initial estimate encourages it to find complex roots — f = @(x) sin(2*x)-2*x; xrts = fsolve(f...

5 years ago | 0

| accepted

Answered
Error when ploting discrete time function
Use element-wise multiplication (.*) instead of matrix multiplication (*). Try this — xn = @(n)[(n==-3),(n==-2),(n==-1),(n=...

5 years ago | 1

| accepted

Answered
rlocus throws up error
Something else is wrong somewhere. I have no idea as to suggesting where to look for the problem. The example code works her...

5 years ago | 0

| accepted

Answered
How can I calculate the area under each peak / display the AUC on the graph?
I decided to give this another try, this time avoiding numerical integration (since it is very difficult to define the pulses), ...

5 years ago | 0

| accepted

Answered
I need some help with Curve Fitting
‘I sware this is not homework. I guess It does sound like homework. Im sorry. Im just trying to get some help.’ O.K. I’ll take...

5 years ago | 0

| accepted

Load more