Beantwortet
Inconveniences working with matlabFunction
The reshape argument simply takes the vector of argumentsin the square brackets [] and creates a matrix from them, as required. ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to chop up/segment a periodic signal?
This approach takes advantage of the fact that the Q-T interval in a normal EKG is less than one-half the previous R-R interval....

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to convert column datetime (yyyy-mm-dd HH:MM:DD.000) into MJD and decyear?
The mjuliandate and decyear functions are part of the Aerospace Toolbox (that I do not have, however is available online here) —...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to not use for loop
Try something like this — format compact a = randn(2, 1) x = linspace(-1, 1, 20) % equispaced x f = a(1) + a(2)*x ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I find numbers>30 in 810*1 matrix?
This is similar to the approach with the months — V = randi(50, 10, 1) Vgt30 = V(V>30) .

etwa 4 Jahre vor | 0

Beantwortet
how to find the maxpeak of an fft signal in a specific range?
Try something like this — FT = fft_result; Fv = frequency_vector; [pks,locs] = findpeaks(abs(FT)); Flocs = Fv(locs); ...

etwa 4 Jahre vor | 0

Beantwortet
Please tell me how to erase meaningless lines from graphs!
There is no need to discard any data. Just use sortrows to sort them — LD = load(websave('data','https://www.mathworks.com/ma...

etwa 4 Jahre vor | 0

Beantwortet
How can I select or extract rows?
It depends on what the data are (for example, datetime arrays). Given the problem described — Months = repmat(ones(3,1) * (...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Filter characteristics of smoothdata function ?
‘So is using freqz or fvtool the right way to approach this problem?’ No. The freqz function wants filter coefficients. T...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Need help finding out if I wrote this code correctly
If you want to save the values of ‘pn’ in the loop, subscript it — pn(M) = 1-(1-((n-1)/N)); That will create a row vector tha...

etwa 4 Jahre vor | 0

Beantwortet
How do I use specific columns from a csv file
I am not certain what you want to regress. Perhaps one of these — fvc = readtable('https://www.mathworks.com/matlabcentral/...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to simulate Poisson Distribution Process?
See if the poissrnd function will do what you want — lambda = 3; v = poissrnd(lambda, 1, 60) .

etwa 4 Jahre vor | 3

| akzeptiert

Beantwortet
Plotting data on binary axis and draw lines between points
Perhaps something like this — x1 = [2.6, 1.5, 1.4, 0.8, 3.2]; y1 = [0.001, 0.9, 0.2, 0.5, 0.3]; figure hs = scatter([1 ...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to extrapolate the data
Another approach — load(websave('DATA','https://de.mathworks.com/matlabcentral/answers/uploaded_files/1117125/DATA.mat')); %%...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Printing out proper equation statement using fprintf.
If you want ‘fa’ to be a function (outside of the Symbolic Math Toolbox) it needs to be careated as an anonymous function: fa ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
how can i apply lowpass filter to this code
There are several approaches. This one uses the lowpass function — % generate a waveform f0 =100; fs=1000; pw = 0.1...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting the convolution of u(t) * dirac(t)
I am not certain what you are doing, however it is necessary to call the correct functions in order to evaluate them. Try this ...

etwa 4 Jahre vor | 0

Beantwortet
coordinates of a point in figure
Try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1115885/26%20mm.xlsx') figure; ...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to add small circles at the end of each line?
Try this — data = { 'col_1' 'col_2' 'col_3' 'col_4' 'col_5' 'col_6' 'col_7' '...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to calculate the mean value of the non vero value in a vector?
M = [0.7,0.3,0]; Mmean = mean(M(M~=0))

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
Plotting of trend in subplots of scatter plot.
Use the lsline function — x=[ 1 2 3 4 5 6 7 8 9 10]; y1 =[ 10 20 30 45 57 78 80 90 100]; y2=[11 22 33 44 55 66 77 88 99 110]...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Failing in creating a surface from three array
Use one of the interpolation functions (here griddata) to create the ‘Z’ matrix — x=[0.5 ; 0.624; 0.75;0.874; 0.9;1.124]; y=[...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Plot points with different brightness
I am not certain what ‘brightness’ means, however there is a way to vary the transparency (alpha value) of points — x = 1:10; ...

etwa 4 Jahre vor | 0

Beantwortet
How to eliminate the for loop but end with the same result
Try something like this — A = -3:3; B = A.^3.*(A>0) It uses a version of ‘logical indexing’. .

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Start and end date picker to load data to graph
The core MATLAB between function (R2014b+) may do what you want.

etwa 4 Jahre vor | 0

Beantwortet
How do I change the orientation and invert the Y-axis label of an Image plot?
The y-direction is 'reverse' in image plots, so to correct it: set(gca, 'YDir','normal') .

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How average datetime data daily?
I would first transpose the data vector matrix, then use array2table to create a table with the data matrix, then use the addvar...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
how to get the FFT of a pulse
I am not familiar with the ‘stepin’ function. It might be easier to use lsim for this, and design your own input vector or vect...

etwa 4 Jahre vor | 0

Beantwortet
Plotting 2 bode plots side-by-side
I am not certain what you want to do, however the subplot (or related) functions are likely the correct approach. The Control...

etwa 4 Jahre vor | 0

Beantwortet
How can I access and use fzero? Do I have to pay something, get a licence ... or?
The fzero function is a core MATLAB function, so no special Toolbox is required to use it. If you do not have MATLAB, you wou...

etwa 4 Jahre vor | 0

| akzeptiert

Mehr laden