Answered
How do I plot a curve in MATLAB and see its characteristics response like overshoot, settling time, etc using Voltage vs time graph from excel.
Use readtable or readmatrix to import the data, then use the System Identification Toolbox functions, specifically iddata, ssest...

4 years ago | 0

Answered
How to apply moving harmonic average on an array?
If you want to calculate it as described in the harmmean More About section, perhaps something like this would work — movhm = ...

4 years ago | 1

Answered
Im trying to plot two functions over a range
There are several missing operators (that I assume should be multiplication operators), and all the applidable operators should ...

4 years ago | 1

| accepted

Answered
Find the width of a peak
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1053640/j1%20a30.csv'...

4 years ago | 1

| accepted

Answered
Plot an equation (sigma operator)
Try soemthing like this — n=3; kv=0:floor(n/2); xv=-2:0.1:2; H = zeros(size(xv)); Hv = zeros(size(xv)); for k2 = 1:numel...

4 years ago | 0

| accepted

Answered
Solve the system of three equations and three unknowns
Solve the system symbolically, then plug in the various values for , , and to get values for , , and — syms A B C D E x y z ...

4 years ago | 0

Answered
Wrong Legend Sign Marker
I am not able to run the code so I cannot test this, however one approach could be: legend([a1(1), a3(1) a4(1)], 'Fiducial Mar...

4 years ago | 1

| accepted

Answered
Readtable() Skipps last rows of csv
If you are using the unique function before writing the output file, it could be deleting several entries. Also, the correct ap...

4 years ago | 0

| accepted

Answered
Why 'NaT' (class: datetime) does not work with find function?
Use the isnat function to test for it. .

4 years ago | 1

| accepted

Answered
My code won't run, error message :Unrecognized function or variable 'ss'. Error in Q4_109 (line 19) Sys=ss(A,B,C,D);
If you are getting an error that MATLAB cannot find the ss function, then you need to license and install the Control System Too...

4 years ago | 1

Answered
Very basic question about fir1 command
Probably something like this — t=0:1/500:0.3; n=cos(2*pi*10*t) + sin(2*pi*50*t); Fs = 500; Fn = Fs/2; b = fir1(32, 25/Fn);...

4 years ago | 0

| accepted

Answered
Can someone please help me plot a Voigt function?
The Voigt profile appears to be slightly challenging to code. The File Exchange has a number of entries for Voigt.

4 years ago | 0

Answered
Plot legend in a bar graph
hFig = figure(1); Month = {'April'; 'May'; 'June'; 'July'; 'August'; 'September'; 'October'; 'November'; 'December';'January'...

4 years ago | 1

| accepted

Answered
How can I get the mean data from under the graphs?
To isolate the regions around the peaks, do something like this — x = linspace(0, 150, 500); ...

4 years ago | 0

| accepted

Answered
How to save data in csv format as output data?
That is not the appropriate way to do the conversion. See my Answer to your previous post.

4 years ago | 0

Answered
How to splits the number into day, hour, minute and second format?
Maybe I’m mising something, however when I last checked, there are not 37 hours in a day or 61 minutes in an hour! Try someth...

4 years ago | 1

Answered
Error in function interp1: Sample points must be unique.
I looked through the code, however I do not see that you ever actually created a timetable object (introduced in R2016b). The b...

4 years ago | 0

Answered
Extract sensorvalues from string with units
See the documentation section on Remove Prefix or Suffix Characters From Variables — type('Test 2020 06 28.csv') ...

4 years ago | 0

| accepted

Answered
Detect increasing or decreasing depth
Assuming the data are contaminated with broadband (rather than band-limited) noise, the different columns are observations and e...

4 years ago | 1

| accepted

Answered
how to put range for findpeaks function
One approach f = linspace(0, 25, 250).'; % Frequency Vector data = exp(-0.1*f) .* sin(2*pi*f*...

4 years ago | 1

| accepted

Answered
Extracting data from timetable
I am not certain what you want. This should get you started — tv = minutes(0:15).'; ...

4 years ago | 0

| accepted

Answered
Is it possible to obtain both line and bars on the same graph?
Use the hold function Years=[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]; A=[-8.8000 -8.5211 -8.2421 -7.963...

4 years ago | 1

| accepted

Answered
How to mark the peaks of a signal based on some threshold value?
First, remove as much baseline drift and high-frequency noise as possible. That will make everything easier. I suggest using...

4 years ago | 0

| accepted

Answered
surfc function : plot goes wrong
It would help to have representative data to experiment with. In its absence, try this — ylim([39.9 40.1]) Experiment wit...

4 years ago | 0

| accepted

Answered
Make a semi sphere and identify the co-ordinates as the shown picture
I am not certain what you want to do. Calculating and plotting the rings corresponding to the required radii (0.66,0.89,0.99)...

4 years ago | 1

Answered
Designing a bandpass filter in Matlab
It took me a while to figure out what the problem was, and it turns out to be that the passband frequencies must be normalised b...

4 years ago | 0

| accepted

Answered
How should my set my obtained answers into a table form?
Copying from my answer to your previous post: % Secant Method in MATLAB % a=input('Enter function:','s'); % f=inline(a) a =...

4 years ago | 0

| accepted

Answered
Matrix index is out of range for deletion
This is the problem when deleting elements in a loop, although there could be a different problem, such as addressing a column v...

4 years ago | 0

| accepted

Answered
How to shift the graph?
It is easier to use the buffer function for this — t = linspace(0, 250, 5000); s = exp(-0.01*t) .* sin(2*pi*t*700); figure...

4 years ago | 0

Answered
using find-command to find max or min value
This is relatively straightforward. Use max with two outputs: x = 0:13; y = randi(25,1,14)/100; [ymax,idx] = max(y) fi...

4 years ago | 0

| accepted

Load more