Answered
Plotting CFD data contour in matlab
T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/714947/snapshot_vel-0001.txt', 'VariableNamin...

5 years ago | 0

| accepted

Answered
Zero out sensor drift
If you have R2018a or later, use the highpass function to eliminate both the d-c offset and any low-frequency baseline drift. I...

5 years ago | 0

Answered
Undefined function or variable 'windrose' when trying to create a windrose
Search the File Exchange for windrose. .

5 years ago | 0

Answered
fplot Warning: Function behaves unexpectedly on array inputs.
The ‘lift’ funciton is symbolic, so no function handle is necessary to plot it with fplot. (If you want to create a funciton ha...

5 years ago | 1

| accepted

Answered
How I introduce step wise feeds to my ODES?
The usual approach is to integrate the differential equation system from the first feed time to the second feed time, stop the i...

5 years ago | 0

Answered
Changing parameter in a function when called by bvp4c
If you want to pass ‘k’ as an extra parameter, see the documentation section on Passing Extra Parameters for relevant examples. ...

5 years ago | 1

| accepted

Answered
Apply a time window to my fft
My version of MATLAB cannot run images of code. Perhaps something like this would work: t = linspace(0, 100, 1000); s = si...

5 years ago | 0

| accepted

Answered
How to plot contour map of x,y values with z as dependent variable?
If ‘M’ is the matrix in the image: y = M(1,:) x = M(:,1) z = M(2:end, 2:end); So for example: M = [NaN 1 2 3 4 5; 10 rand...

5 years ago | 0

| accepted

Answered
ROOT MEAN SQUARED(RMS)
l ~= 1

5 years ago | 0

Answered
Reading in data from text file in a certain format
A similar problem presented itself in Reorganization of experimental data and that solution could be adapted to your problem. I...

5 years ago | 0

| accepted

Answered
Linear interpolation two array with target value in one array
Interpolate using interp1: A=[483, 427, 306, 195]; B=[0, 0.25, 0.5, 0.75]; target = 241; Result = interp1(A, B, 241) Graph...

5 years ago | 0

| accepted

Answered
Formulas of Rise time, settling time, and other step-response characteristics for arbitrary-order transfer function
If you are estimating the transfer function from data, use the System Identification Toolbox functions, specifically iddata and ...

5 years ago | 0

| accepted

Answered
CSV huge data and mesh grid.
I am not certain what result you want. I would do somemthing like this: T1 = readtable('https://www.mathworks.com/matlabcen...

5 years ago | 1

| accepted

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

Load more