ActAccの1波長を抽出してpeak-to-peakを求めたいです.この作業を5回ずつそれぞれ別の周期で求めたいです.
2 views (last 30 days)
Show older comments
clear;
close all;
%データ読み込み
Dat = readmatrix('230518_pmac_f10.txt');
t= Dat(:,1); %時間データをtに入れる
ActAcc= Dat(:,2); % ActAcc 実 加速(cts)
CmdAcc= Dat(:,3); % CmdPAcc 指令加速度(cts)
%エンコーダ:23bitを4逓倍
ActAcc_mm= ( 4/(2^23) )* ActAcc; %mmに変換
CmdAcc_mm= ( 4/(2^23) )* CmdAcc; %mmに変換
%位置プロット
plot( t,ActAcc_mm, t,CmdAcc_mm )
axis( [5 6 -7.315 -7.21] )
%軸ラベル
xlabel('Time s')
ylabel('Acceleration mm/s2')
%凡例
legend( 'ActAcc', 'CmdAcc')
0 Comments
Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!