Beantwortet
Need to load a file from an open data set a
Perhaps something like this: file = "C:\Users\Joyfu\Downloads\SOCR-HeightWeight.csv"; A = readmatrix(file) Col1 = A(:,1); ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Locate values in a matrix
A reasonably general approach would be to use the Signal Processing Toolbox sgolayfilt function to smooth the data (there are oi...

etwa 3 Jahre vor | 1

Beantwortet
Peak area through Findpeak
It depends on how you define ‘peak’. LD1 = load('X4.mat'); X4 = LD1.X4; LD2 = load('Y20_4.mat'); Y20_4 = LD2.Y20_4; [pk...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I generate numbers from an Exponential Distribution within Min and Max values?
Use the truncate function — pd = makedist('Exponential','mu', 1.5); t = truncate(pd, 0.5, 4.3); r = random(t,10000,1); ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Confidence bounds in custom equation
I am not certain what your first question actually asks. The way to interpret the confidence limits here would be: a = [0.042...

etwa 3 Jahre vor | 0

Beantwortet
I have x of size (15*1) and y of size (14*1) and Z of size (14*1*15). I want to plot x with z at each y?
I am not certain what you want to do. This will plot ‘Z’ at each ‘x’ and ‘y’. It may be necessary for you to use the squeez...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Plot a mean of ten lines of different resolution
It would help to have the actual data. The missing data must be NaN values, since if they were simply blank, they would throw...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Trouble using findpeaks function
I have no idea how you are importing them. The findpeaks function wants real vector data. Try something like this — T1 = r...

etwa 3 Jahre vor | 0

Beantwortet
how to add 2nd y-axis on give graph?
See the documentation for yyaxis. It should be all you need.

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Lsqcurvefit - problem with matrix input
Index in position 2 exceeds array bounds. Index must not exceed 1. Check to see how many columns ‘empty’ has. It may only have...

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

Mehr laden