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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

| aceptada

Respondida
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 & ...

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

Respondida
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'}...

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

Cargar más