Beantwortet
How to envelope a FFT dataset?
It depends on what you want to do. The Signal Processing Toolbox has the envspectrum function that can do this, however the si...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
skip items in a legend
Perhaps this — x = 0:10; y1 = randn(size(x)); y2 = randn(size(x)); y3 = randn(size(x)); figure hp1 = plot(x, y1, 'Displ...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
ODE for frequency response
This takes a while to run, so I used relatively coarse mesh intervals (for ‘tspan’ and ‘omega’) to run it here. Experiment wi...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
How to draw yline on yyaxis on right hand axis?
I don’t have your data, however in this simulation it seems to work correctly — x = 0:10; y1 = randn(size(x)); y2 = randn(s...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Is there a way to fit experimental data to a set of x,y points?
Hankel functions are new to me, so I looked this up. Wolfram MathWorld a has a description: ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I access sub-columns in table
Try this — I = [1 2 3; 1 2 3;1 2 3]; J = [4 5 6;4 5 6;4 5 6]; K = table(I,J) VN = K.Properties.VariableNames; I1 = table...

fast 3 Jahre vor | 0

Beantwortet
plot3 command error in dlode45
The problem is that ‘y’ is a dlarray (the first time I’ve encountered one so I need to start working with the Deep Learning Tool...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
converting indices into time
Try this — F = openfig('figure1.fig'); Lines = findobj(F, 'Type','line'); tidx = Lines.XData; speed = Lines.YData; Fs = 3E...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to save user input as variable I can compare?
The ‘data’ values are geing read correctly, however the second ‘data’ assignment is overwriting the first one. Perhaps: da...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can I use ismembertol to find x,y coordinates that are close to each other?
The best approach to find (x,y) pairs that are close to each other is probably to use pdist2. You can then compare the distance...

fast 3 Jahre vor | 0

Beantwortet
Problem in plotting the convolution
Use the 'same' argument so that the output is the same size as the input: yt= conv(xt , ht, 'same'); This works — dt= 0.000...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Problem adding labels to figure
One problem is that just after creating the figure the code clears it. Otherwise perhaps something like this — fig=figure(3...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can i plot sections of a horizontal line?
One approach — t = linspace(0, 15, 150); v = ones(size(t)); G{1} = (t >=3 & t<=4); G{2} = (t>=14 & t<=15); K{3} = (t>=7 & ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Directed transfer function (DTF) calculation for EEG data
The Wikipedia article on Brain connectivity estimators provides a llink to HERMES that apparently can be downloaded (I have no r...

etwa 3 Jahre vor | 0

Beantwortet
add text to the axis
Perhaps this — t = 0:24; y = rand(3,25); figure plot(t, y) grid text([13 6 18], zeros(1,3), {'noon','sunrise','sunset'}...

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 1

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

Mehr laden