Risposto
Error with ode45 in line 89. Trying to use ode 45 to give data on a 4x4 state space matrix
I am not exactly certain what you want to do. This is my best effort to make sense of it — x1_0=1; v1_0=1; x2_0=0; v2_...

circa 3 anni fa | 0

Risposto
Extract plot statistics for a specific range
I don’t have the Curve Fitting Toolbox, however looking at the documentation for the datastats function, one option would be: ...

circa 3 anni fa | 1

Risposto
Why do I get the error "Subscript indices must either be real positive integers or logicals." ?
Wioth the additional multiplicationo operators in ‘dYdx(6)’ and ‘dYdx(8)’ it appears to run without error — %define space f...

circa 3 anni fa | 0

Risposto
Convert cell array to filename
See: Access Data in Cell Array

circa 3 anni fa | 0

Risposto
update the column headng by readin the excel file
If you want the variable names, first: T1 = readtable('YourFile.xlsx', 'VariableNamingRule','preserve') then: ColumnHeading...

circa 3 anni fa | 0

| accettato

Risposto
I want to shade the upper region of the four curves and left region of the vertical line
Try something like this — x=0:140; M=(9.88./x)+((0.00044)*x); T=(0.04-(0.0516*(exp(7.442./(x)))))./(1-(exp(7.442./(x)))); R...

circa 3 anni fa | 0

| accettato

Risposto
Is there a way to use findgroups() so that it is based on order in the matrix instead of alphabetical?
There doesn’t appear to be that option for findgroups. If you only have one vector, the unique function can do thaat using the ...

circa 3 anni fa | 1

| accettato

Risposto
calculating the difference in dates
Try something like this — T1 = readtable('dates.xlsx', 'VariableNamingRule','preserve') YearMonth = datetime(T1{:,1},T1{:,2},...

circa 3 anni fa | 1

| accettato

Risposto
Derivative spectra from table, but error appears: Arrays have incompatible sizes for this operation
Use the gradient function instead: dydx = gradient(y,1)./gradient(x,1); The outputs are the same sizes as the arguments. ....

circa 3 anni fa | 0

| accettato

Risposto
How do I create a 3D plot using the messgrid command from data within an Excel file?
The meshgrid call is actually not necessary. Try this — T1 = readtable('Epsilon_Prime.xlsx') T1.Var2 = str2double(T1.Var2)...

circa 3 anni fa | 0

Risposto
how convert field struct in cellarray
See if the struct2cell function will do what you want.

circa 3 anni fa | 0

| accettato

Risposto
How can i read a .isf file?
See this post on the Tektronix site. It tells how to save the file as a .csv file. After that, use readtable or readmatrix to ...

circa 3 anni fa | 0

Risposto
How to plot contour lines on MATLAB?
See if contourm will do what you want. (I do not have the Mapping Toolbox since I do not need it for what I do, so I have no ex...

circa 3 anni fa | 0

Risposto
accelerometer data shows nothing in FFT
Perhaps something like this — data = readmatrix('usb_data_100hz2.17th.txt'); x = data(:,1); y = data(:,2); xstats = [mean...

circa 3 anni fa | 0

Risposto
Ussing input to read an excel file
There are several options. Without having the file to work with, readtable and readcell could be appropriate. The xlsread fu...

circa 3 anni fa | 0

Risposto
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); ...

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

| accettato

Risposto
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); ...

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

Carica altro