Beantwortet
How to find time step of video signal?
In the VideoReader documentation, see both FrameRate, and CurrentTime for each frame since the time steps may not be constant. ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I plot an equation that includes sigma?
I changed ‘t’ to ‘tv’ and then created ‘t’ in each iteration as ‘tv(k1)’ to produce a vector for ‘total’ that is then plotted at...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
write matrix into a new file everytime a value of one column changes
One approach — T1 = array2table([ 0 0.55 0.1 1 0.37 0.1 2 0.03 ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Findpeaks the reason why my index is floating
The findpeaks function is interpreting the ‘20’ argument as a sampling frequency, and so is returning the position of the peak a...

etwa 3 Jahre vor | 2

| akzeptiert

Beantwortet
I have set of data that I need to fit to a function and I don't seem to get the fitting to work
That function is linear in the parameters (the partial derivatives of the function with respect to each parameter is not a func...

etwa 3 Jahre vor | 0

Beantwortet
how to get txt data from fig / plot, if there are multiple curves?
I do not understand what you want to do. Getting the information on the line objects is straightforward — I = openfig(websave...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to design filter order for high-pass butterworth filter
To determine the optimal order, use the buttord function. Wp= fc/(fs/2); %Threshold Frequency Ws = 0.95*Wp; Rp = 1; Rs = 6...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
gradient with irregular grid
The gradient function assumes a fixed step size for the second argument. The way I calculate the numerical derivative using a...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
I am trying to Import .csv or excel file into Matlab but its not showing dates after 12th of every month, instead showing NaT. Please Help.
I have never used datastore arrays, however looking at the documentation, it is likely best to select DatetimeType as 'text' and...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
how do I write an equation from matlab to latex?
If you have the Symbolic Math Toolbox, use the latex function.

etwa 3 Jahre vor | 1

Beantwortet
loop error with "unique" and "interp1"
To avoid all the problems about having unique values in one of the vectors, select a narrow range for the interpolation. That (...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How would I plot signal energy of a .wav file making sure that time is the value of the x-axis?
The audioread function returns the signal amplitude matrices and the sampling frequency. To create a time vector for the ‘y’ da...

etwa 3 Jahre vor | 0

Beantwortet
How to find angle between a fixed point to multiple point ??
Perhaps this — M = load('M.mat'); M = M.M; N = load('N.mat'); N = N.N; xv = 506; ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
I have the following signal with some peaks and some valleys. Is it possible to make the baseline zero?
The approach I would take would be to find the minimum just before each of the tall spikes (use findpeaks or islocalmax to find ...

etwa 3 Jahre vor | 0

Beantwortet
fill ids numbers in the matrix
I had to plot ‘example-logfile’ to figure out how it works. Try this — TLf = readtable('Logfile.xlsx'); TLf.Var3 = cumsum(...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
zpk DisplayFormat as time constant, how to access the actual Gain, Zeros and Poles
Perhaps I do not understand your question, however in the documentation for the 'time constant' option, the coefficient of is t...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
categorical conversion to integer
Perhaps something like this — y = categorical([0 1]) y = cellfun(@str2double,categories(y)) y = int8(y) .

etwa 3 Jahre vor | 1

Beantwortet
How do I find the trough of my data with stated x limits where it should occur?
The findpeaks function will not work optimally with NaN values in the vector, so if you suspect that, use the fillmissing functi...

etwa 3 Jahre vor | 0

Beantwortet
Polarplot - plot arc between points instead of line
Define the two points you want, crate an angle vector connecting them, and then interpolate to create the radius vector — poin...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Indexing geochemical data arrays with different numbers of elements
This can be done in a relatively straightforward way by first separating the sub-matrices into dindividual cells using the accum...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
how to store values for a further operation
Perhaps something like this — x = randn(2000, 1); Fs = 250; L = numel(x); t = linspace(0, L-1, L).'/Fs; figure plot(t, ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
if elseif else statement not working
Use a logical vector to select the elements you want to plot, then use that as a subscript to both arguments in each plot call —...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to find Maximum Likelihood Estimation of Images?
Use the mle function. However according to the documentation section on data the input must be a vector, so the call to it woul...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Retime Yearly Maximum - Finding Corresponding Dates from Timetable
Try something like this — Date = datetime(2020,01,01)+caldays(0:3.9*365.25).'; Temp = 80*rand(size(Date))-40; Humd = randi([...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
find equal value into cell
Use the ismember function after using the cell2mat function. I am not certain what references you want, so it may be necessar...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Help with Laplace transform method for 2nd order DE
In the subs call, use curly braces {} instead of square brackets []. Then, it works — syms s t y(t) Y g = heaviside(t)*(si...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I get Symbolic/simplify to replace 1-cos(theta)^2 with sin(theta)^2 etc.
Without having the longer expression to experiment with, perhaps rewrite or subexpr could work.

mehr als 3 Jahre vor | 0

Beantwortet
Problem with ordinary differential equation
The initial condition of 0 for keeps it 0 througuout the integration. syms y(x) x Y N=5; r=0.05; m=0.01; p=1; s=1; t=...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can I rename the dependencies of an anonymous function?
I am not certain what you want to do, however it seems that you want to compbine both of the arguments into a single vector. ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
convert html content to table
It appears to be an Excel file in a website. Perhaps using readtable would work. If not, then perhaps first using websave migh...

mehr als 3 Jahre vor | 0

| akzeptiert

Mehr laden