フィルターのクリア

Using event function multiple times

2 ビュー (過去 30 日間)
pxg882
pxg882 2012 年 12 月 7 日
Hi, I am using the event function whilst solving a system of ODEs but I would like to find where multiple functions are 0. I've tried using:
function [value,isterminal,direction] = event_function(eta,X)
value = X(1) & X(2) & X(3) & X(4);
isterminal = 1;
direction = 0;
But this doesn't work. Does anybody know how to get round this?
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 12 月 7 日
What is the value of X?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by