Answered
How can I find rise time from an array of values that starts and ends at its steady state?
The stepinfo function will work if you have a Control System Toolbox or System Identification Toolbox ‘system’ object. It will ...

6 years ago | 1

| accepted

Answered
Sampling rate in matlab
There is no default sampling rate for ifft because ifft does not actually sample anything. If the original fft is calculated co...

6 years ago | 0

| accepted

Answered
fprint problem in matlab
The fprintf fuction returns the number of bytes ouitput to the file. You probably want sprintf instead here.

6 years ago | 0

Answered
Upgrade MATLAB from r2013b to r2017b problem.....
Much changed in those four years, specifically in R2014b and R2016b. (that introduces implicit array expansion). You now nee...

6 years ago | 0

Answered
Accuracy of resampling for decreasing vector size
Use the method argument to determine how the resampled vector is created. I have no idea how the other resample call returned...

6 years ago | 0

| accepted

Answered
How to split vector according to conditions?
One approach: V = [1 2 34 35 36 102 103 104]; d = find(diff([0 V]) > 1); p = diff([1 d numel(V)+1]); Out = mat2cell(V, 1, p...

6 years ago | 1

| accepted

Answered
How do I use ode45 to solve this ODE?
‘...all their equations have t in it.’ As does the one you posted. Note that ‘B’ is implicitly a function of time, because...

6 years ago | 0

Answered
Sin and Cosine curves are coming out like zigzags
Increase ‘numSamples’. Try this: numSamples = 120; It can be anything you want (within limits). A higher number creates b...

6 years ago | 0

| accepted

Answered
Error Message "Unrecognized function or variable"
Note that ‘pcaBinnedSpikes’ is assigned within an if block. If the if condition is never satisfied, ‘pcaBinnedSpikes’ will ne...

6 years ago | 1

| accepted

Answered
How to retrieve the location of the points plotted ordered
The easiest way to do that is to use the flip function (or fliplr or flipud, depending on what you want to do). Try this: f...

6 years ago | 1

| accepted

Answered
Plotting over a certain range, what am i doing wrong here?
Mixing radian and degree angle units makes this a bit more challenging. Try this: yfcn = @(a) sin(a) .* ((120*pi/180 < a) &...

6 years ago | 0

| accepted

Answered
how do i create a surface around two circles of different diameters located a specific position???
You are close. You need to concatenate the vectors into matrices, then use surf to plot them. Try this: xm = [x1; x2; x3];...

6 years ago | 0

| accepted

Answered
MarkerSize in 3D scatter plot
See Vary Marker Size in the scatter3 documentation.

6 years ago | 0

Answered
How do I find the oscillation of these wobbles on matlab?
I am not certain what you want. If you want to find the predominant frequency, the best way is likely to use the fft function...

6 years ago | 0

Answered
need to make a function to change a high value to the average in a matrice
The fillmissing function (R2016b and later releases) may be able to do what you want. First, set the values >300 to NaN (you do...

6 years ago | 1

| accepted

Answered
"The value on the right-hand side of the assignment has the wrong width." Error
I am not certain where the problem is in the two lines you posted. Try this: idx= strcmp(station001_eus{:,10}, ',,7'); sta...

6 years ago | 0

| accepted

Answered
Eliminates a value less than 1 and replace with nan for all the row
What you want the result to be is not obvious. Try this: TT(ind,:)={NaN}; .

6 years ago | 1

| accepted

Answered
Dashed confidence intervals and xlabel
To plot as you want to plot, you need to create an ‘x’ vector to plot against. Since you are plotting against the row indices, ...

6 years ago | 0

| accepted

Answered
how can I set axis's tick or scale like photo.. help plz,,
Add these lines: grid set(gca, 'XScale','log', 'YScale','log', 'YLim',[0.01 100]) so the complete code is now: CD = @(Re) ...

6 years ago | 0

| accepted

Answered
Why I am unable to recreate curve fitting equation?
I have no idea what the problem is. The fminsearch function had no probllem with it. The Code — f = @(b,x) b(1).*exp(b(2)....

6 years ago | 1

Answered
QRS complex detection in ventricular tachycardia ECG
If this is a homework problem, you will not be able to use this code. If it is for research, you can likely adapt it to other p...

6 years ago | 0

| accepted

Answered
finding troughs in signal
See my Answer in: How to find QRS complex for this Graph? for one approach to this problem. You will likely need to modify tha...

6 years ago | 0

Answered
Concatenating 2 vectors into 1 vector with the values adjacent to each other
Yes. Use datetime to create them. Example — CO2_Mtx = [2012 01 rand; 2012 2 rand; 1985 5 rand; 1985 6 rand]; ...

6 years ago | 2

| accepted

Answered
How to find QRS complex for this Graph?
This is not a trivial problem. This EKG displays the Wolf-Parkinson-White syndrome, so the normal Q-wave is not present. It ac...

6 years ago | 0

| accepted

Answered
Convert MOV to AVI file
The only option appears to be VideoWriter. Several Answers I looked through appear to indicate that it can do what you describe...

6 years ago | 0

Answered
Organising data for machine learning using buffer function
There may be more efficient ways to create specific features for classification. See: Introduction to Feature Selection for a n...

6 years ago | 0

| accepted

Answered
Getting a constant instead of (2*exp(-3/2))/3 + 1/3 solving a differential equation
Use the vpa or double function, depending on the result you want.

6 years ago | 1

Answered
Place grid on top of patches
The gridlines can be put on top of the figure, and you can also vary the transparency of the grid lines. Example — x = 1:10;...

6 years ago | 2

| accepted

Answered
How to plot two lines in a looped subplot in matlab?
Add an if block in the loop: lines = rand([30 5]); line2 = rand([30 1]); k = 5; for j = 1:k subplot(3, 2, j); plo...

6 years ago | 0

| accepted

Answered
iterative search through matrix in order to add a column
I have no clear idea what you want to do. Try this: First = [randi(50, 100, 1) rand(100,1)]; Second = [randi(50, 10, 1) ra...

6 years ago | 1

Load more