フィルターのクリア

How will put initial values in x0 of s-function that is in a matlab file (.m)?

1 回表示 (過去 30 日間)
Maidul Islam
Maidul Islam 2016 年 6 月 14 日
I want to put the given function in x0 of s-function level 1:
function [ s0 ] = init_3d( )
phi0 = 0.0; theta0 = 0.0; psi0 = des_start.yaw; Rot0 = RPYtoRot_ZXY(phi0, theta0, psi0); Quat0 = RotToQuat(Rot0);
s0 = [des_start.pos des_start.vel Quat0 0 0 0];
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by