ActAccの1波長を抽出してpeak-to-peakを求めたいです.この作業を5回ずつそれぞれ別の周期で求めたいです.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!