Respondida
How can I make ODE15s interpolate a value from a given table on each time step?
That depends on the problem that you want ode15s to solve. As a general rule, the approach is to include an interp1 call, and p...

más de 3 años hace | 0

Respondida
How do I change the color for a plot in a for loop?
You seem to be plotting point, not lines, in the loop, and to do that it is necessary to specify a marker. Perhaps this — p...

más de 3 años hace | 1

| aceptada

Respondida
Detecting and removing data (faulty data) from stress-strain curve after rupture
Without the data to refer to, see if the ischange function (introduced in R2017b) will do what you want — strain = linspace(0,...

más de 3 años hace | 0

| aceptada

Respondida
How to plot y-axis limits and y-limitation line
I am not certain what you want. You set the xlim values and drew the yline annotations, so you obviously want those as they are...

más de 3 años hace | 1

Respondida
Creating Frequency Modulated WAV File
I’m not certain what you want the result to be. In situations like this, I plot it (using various methods) to see what the re...

más de 3 años hace | 0

Respondida
calculate Wavelength of vortices from noisy velocity fluctuations data.
Try something like this — T1 = readtable('data.xlsx', 'VariableNamingRule','preserve') VN = T1.Properties.VariableNames; Z...

más de 3 años hace | 0

| aceptada

Respondida
where I am making a mistake while using fsolve to evaluate two unknown with two equation
Only one minor problem. The fsolve function needs and returns a vector of paramters. Changing that call to: x=fsolve(@(b)f...

más de 3 años hace | 0

| aceptada

Respondida
Why is nothing showing up on my plots?
It now fills the matrices corrrectly and plots something, however I cannot determine what you want it to plot — % Regarding th...

más de 3 años hace | 0

Respondida
integral() doesn't accept scalar function as input
It works correctly with the 'ArrayValued' name-value pair — Psi = @(x) [1 x] fun = @(x) abs(Psi(x)*Psi(x)') integral(fun,0,1...

más de 3 años hace | 1

| aceptada

Respondida
How to plot a graph showing the upper and lower boundaries of data?
With random points, constructing the limits is a bit more of a challenge. I use the boundary function here, although there ar...

más de 3 años hace | 0

Respondida
How to determine phase shift between two waveforms?
I am not certain what you want. The easiest way too analyse the phase differences is to do a Fourier transform of the signals...

más de 3 años hace | 1

| aceptada

Respondida
finding a trend line where x axis semilog and y axis linear and trend line follow the eqn y=a*exp(b*x)
AA straight horizonta line would be the best model, since ‘Depth’ does not change at all over time — T1 = readtable('data_mat_...

más de 3 años hace | 0

Respondida
Adding vertical trendline for mutiple y variables in one scatterplot
One option is to simply reshape all of the different ‘x’ and ‘y’ data vectors (combined into matrices here for convenience) into...

más de 3 años hace | 0

| aceptada

Respondida
inverse log of a number
I have no idea what ‘logtcorr’ is. However, exp is the inverse of log, with 10^arg being the inversee of log10 and others fol...

más de 3 años hace | 0

Respondida
plotting horizontal scatter plots
Reverse the ‘x’ and ‘y’ coordinates in the scatter plot — x = 1:5; y = rand(size(x)); figure barh(rand(size(x))) hold on...

más de 3 años hace | 0

| aceptada

Respondida
how can i use integral function with vector limits by using another for loop ?
All the vectors have to be the same size ()so I shortened ‘m’ here), then arrayfun works (and so would a loop, indexing each vec...

más de 3 años hace | 1

Respondida
stacked plots with contour- custom lsyout
It is likely easiest to use subplot because it allows more options for the axis sizing, while the others (tiledlayout and stacke...

más de 3 años hace | 0

Respondida
Parameter Estimation of a model
I would do something like this — Data = [(0:10).' rand(11, 3)]; % Data = [Time Current Voltag...

más de 3 años hace | 0

| aceptada

Respondida
I have an indices error in my code
The problem is that in the ‘Update floater positions’ loop, both ‘ix’ and ‘iy’ are NaN at some point, and that throws the indexi...

más de 3 años hace | 0

Respondida
How to calculate every peak in plot
Peak locations, full-width-half-maximum, and areas — fabric_image = imread('Kain1.png'); % Replace 'fabric_image.jpg' with the...

más de 3 años hace | 0

Respondida
Need to count projections from a graph
It depends on what information you want. The red line appears to interpret the results of the image behind it, so it would like...

más de 3 años hace | 0

| aceptada

Respondida
Calculate SNR from sampled real signal
The Signal Processing Toolbox snr function (introduced in R2013b) has a number of different ways to calculate it. If you only h...

más de 3 años hace | 0

Respondida
I want to calculate the moving rms of accelerometer data.
Try something like this — Fs = 5000; T = 100; t = linspace(0, T*Fs, T*Fs-1)/Fs; s = sin(2*pi*t*25); xrms = @(s, n) sqrt(...

más de 3 años hace | 0

| aceptada

Respondida
lsqcurvefit Fitting kinetic model to estimate kinetic parameter.
That does not appear to me to be the same data. I get decent results except for and , leading me to believe that there is so...

más de 3 años hace | 2

| aceptada

Respondida
Accessing local variables in a function.
One option would be to return it as an output. I am not certain which one you want to return, however assuming that it is ‘No...

más de 3 años hace | 1

| aceptada

Respondida
How to get rid of spikes from the attached graph
It would help to know what the data represent. Try this — LD = load('batterycellhighvoltage.mat') M = LD.BMC_PACK1_CellHig...

más de 3 años hace | 0

Respondida
Help interpreting Fast Fourier Transform.
My analysis — M1 = readmatrix('fftpoop') t = M1(:,1); s = M1(:,2); L = size(M1,1) Ts = mean(diff(t)); Fs = 1/Ts; Fn = ...

más de 3 años hace | 1

| aceptada

Respondida
How can I plot transfer function?
You can use the transfer function that you posted, if you define ‘s’ first, using the tf function. If you want the magnitude ...

más de 3 años hace | 0

| aceptada

Respondida
dlmread error when performing fourier transform (FFT)
You could use the deprecated csvread function, however readmatrix is preferred, since the data are numeric and the variable name...

más de 3 años hace | 1

| aceptada

Respondida
Creating 3d surf from 2d map
It would help to have the data. That aside, the plot would go something like this (I got tired of all that typing, so there a...

más de 3 años hace | 1

| aceptada

Cargar más