フィルターのクリア

I get this error bellow >> how can i fix it ?

1 回表示 (過去 30 日間)
khitam
khitam 2022 年 9 月 3 日
コメント済み: khitam 2022 年 9 月 14 日
error : getDesiredStateFromTrajectory
Not enough input arguments.
Error in getDesiredStateFromTrajectory (line 5)
coefficient = coefficient';
code :
function [desire_state] = getDesiredStateFromTrajectory(coefficient, time_stamp)
%GETDESIREDSTATEFROMTRAJECTORY Summary of this function goes here
% Detailed explanation goes here
desire_state = zeros(1, 16);
coefficient = coefficient';

採用された回答

Chunru
Chunru 2022 年 9 月 3 日
getDesiredStateFromTrajectory([1 2 3 4], 123) % call the function by passing the values
ans = 1×16
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
% Use this as a local function or save in a separate file
function [desire_state] = getDesiredStateFromTrajectory(coefficient, time_stamp)
%GETDESIREDSTATEFROMTRAJECTORY Summary of this function goes here
% Detailed explanation goes here
desire_state = zeros(1, 16);
coefficient = coefficient';
end
  1 件のコメント
khitam
khitam 2022 年 9 月 14 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by