Answered
Plot geographical datas on a map from .csv file
Without knowing the details, and if you do not have the Mapping Toolbox and do have R2018b or later, consider using the geoscatt...

7 years ago | 0

Answered
Removing noise from Hysteresis loops
The easiest way to remove the noise is likely to fit your data to a function that describes the hysteresis. See: Interpolatio...

7 years ago | 1

| accepted

Answered
Does findpeaks work with mat files?
‘... my script doesn't plot my trace and doesn't detect any peaks ...’ You are overwriting the findpeaks plot. Try this in...

7 years ago | 0

Answered
Index in position 2 exceeds array bounds(must not exceed 1). How to fix it? The error addresses at the last equation R(1,m).
Your ‘R1’ array when called initially in this line: R(1,m)=r(1)*R1(1,m-1)*((K(1)-R1(1,m-1))/K(1))*(Er/Ap); is a (5x1) vector....

7 years ago | 0

| accepted

Answered
Subtract data vectors with different frequencies
The best way is to use the Signal Processing Toolbox resample (link) function to resample the 20000 Hz sampling frequency vector...

7 years ago | 0

| accepted

Answered
How to Convert this time series data to YYYY-MM-DD HH:MM format
Try this: A = [2019 137 1650; 2019 144 1740]; % Two Sample Rows S = n...

7 years ago | 0

Answered
How to add a vertical line in a plot that corresponds to a maximum?
Changing part of your code to draw the vertical lines, and the text label in figure(2): %_____________________________________...

7 years ago | 0

| accepted

Answered
no line on graph
You vectorised everything else, and then forgot to vectorise the division in your ‘X’ assignment: X=abs(x1./x2); ↑ ...

7 years ago | 0

| accepted

Answered
FFT shows different frequency
We would have to see your code (and preferably also at least one of your data files) to determine what the problem is. Most l...

7 years ago | 0

Answered
How can i use MinPeakDistance of Findpeaks?
For a normal EKG, it is easiest to use the 'MinPeakHeight' name-value pair, rather than 'MinPeakDistance', since you need to acc...

7 years ago | 3

Answered
I have attached a fig file in which I have used 3 legends for upper, middle and lower curve, respectively. Actually, there are six lines in each curve but I want each curve to look like a single line. How is it possible using fig file.
Try this: I = openfig('comp25.fig'); Ax = gca; lgnd = Ax.Legend; Lines = findobj(Ax,'Type','line'); for k1 = 1:fix(numel...

7 years ago | 0

| accepted

Answered
How do I find peaks in a matrix and extract those values?
I would do something like this: YourMatrix = rand(20, 3); % Create Matrix [pks,locs] = findpeak...

7 years ago | 1

| accepted

Answered
Text Boxes on MATLAB not showing up
The annotation object positioning convention remains something of a mystery to me. So I have no idea why this works, it just ...

7 years ago | 1

| accepted

Answered
how to use spline for a fig. file?
Try this: I = openfig('fft scma 25.fig'); Ax = gca; lgnd = Ax.Legend; Lines = findobj(Ax,'Type','line'); N = 5; ...

7 years ago | 0

| accepted

Answered
How can I use .mat file as new variable?
Another option: S = load('DCS_data.mat'); C = struct2cell(S); T = C{1}(:,1); heat = C{1}(:,2); save('DCS_data(2).mat', 'T'...

7 years ago | 0

| accepted

Answered
How to determine constants using a linear solve of logarithmic transformations which minimize the sum of the residual squares for the below equations?
REPOSTED — I decided to let ga have a go at your data and function. This code : D = load('X-Y.mat '); X = D.X ; Y = D....

7 years ago | 1

| accepted

Answered
How can I change function handles into functions?
You called integral correctly twice, then used the non-existent ‘integrate’ function (unless you created it, regardless, we don’...

7 years ago | 0

| accepted

Answered
How to properly model a kinetic reaction system from experimental data using lsqcurvefit?
Thank you for referring to my ’Monod Kinetics’ Answer! I’m glad you found it useful! There are two problems with your code. ...

7 years ago | 1

| accepted

Answered
How to create a 3D surface from a matrix
Use the surf function, or its friend, mesh (linked to in that documentation page).

7 years ago | 0

| accepted

Answered
How to remove fixed xlabels from bar plots?
You need to use the axis 'XTickLabel' property to change the numbers into the labels you want. Try this: X = rand(2,3); fi...

7 years ago | 1

| accepted

Answered
fplot - vectorisation with inequalities
The fplot function may be a bit sensitive with respect ot the functions you give it. Your code runs without error (only the war...

7 years ago | 0

Answered
MATLAB in intel Atom
See: MATLAB System Requirements

7 years ago | 0

| accepted

Answered
Fourier transformation input parameters
Only take the Fourier transform of the second column. Having the first column is necessary in order to calculate the frequency ...

7 years ago | 0

| accepted

Answered
meas, k nearest neighborhood
Apparently ‘meas’ is a matrix, The ‘x’ assignment takes columns 3 and 4 from it. It would have been just as easy (and likely...

7 years ago | 3

Answered
Want to combine two plots
Try this: t = linspace(0, 50); y1 = 100.0 - 90.0*exp(-0.0465*t); y2 = 203.6 - 11.3*t; y2 = y2 .* (y2 >= 0); ...

7 years ago | 1

| accepted

Answered
BandPass filter using ellipord
You are close. The passband and stopband frequencies must be stated as two-element vectors, and normalised by the Nyquist frequ...

7 years ago | 2

| accepted

Answered
how to use sprintf inside a loop
Try this: filetype = {'SS' 'rev' 'nor'}; figure hold all for k1 = 1:numel(filetype) for k2 = 1:10 filedata3 =...

7 years ago | 0

| accepted

Answered
How to determine how many data points are in a scatter plot?
It is only slightly hidden. Try this: figure scatter(rand(1,10), rand(1,10)) Ax = gca; hs = findobj(gca, 'Type','scatter...

7 years ago | 1

Answered
Reversing axes in contourf plot
Yes. figure contourf(YourMatrix) set(gca, 'XDir','reverse')

7 years ago | 0

Answered
How can I move the "x10E3" indicator next to the Y axis?
It would likely be easier to simply add a second, blank, line to the title: title({'CorrienteFugaFallaTierra\_Amp';''}) This ...

7 years ago | 1

| accepted

Load more