how to obtain peak time
Ältere Kommentare anzeigen
I have a motor response oscillating data in two columns, column 1 is time and column 2 is the response in volts. I want to develop a simple MATLAB routine to plot the data (which I have done) and find the oscillation characteristic (Peak time, overshoot %, rise time, and settling time) in the same MATLAB routine (I obtained this one too).
My problem is that I want to see the same parameters in the plot too. The system characteristic option box does not appear in the plot. what statement can I add to the existing routine to have this feature enabled. The small routine I have made is as follows:
close all
clear all
clc
fid=fopen('Exp_4_No_1_Ki_10_for_Parameters.txt','rt');
C=textscan(fid,'%f%f');
% t=fid(:,1);
% R=fid(:,1);
fclose(fid);
sys=cell2mat(C);
t=sys(:,1);
response=sys(:,2);
plot(sys(:,1:1),sys(:,2:2))
title('Response curve')
%step(sys)
% stepinfo(response,t,2.045)
S=stepinfo(response,t,2.045)
Thank you for the assistance.
Akzeptierte Antwort
Weitere Antworten (1)
Ahmad Jamal
am 3 Apr. 2022
0 Stimmen
Kategorien
Mehr zu Data Types finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

