components of vector valued functions
古いコメントを表示
Given
F=@(x,y) [x+y,x-y.^2]
how do I refer to the second component of that function;
the command
syms x,y; F(x,y)(2)
gives an error, though I would expect to get x-y^2. My goal is to define a new function which only contains one particular component of a vector field like
f2=@(x,y) F(x,y)(2)
Probably simple but I did not find the correct syntax.
採用された回答
その他の回答 (1 件)
Wilhelm
2014 年 2 月 3 日
編集済み: Walter Roberson
2014 年 2 月 3 日
カテゴリ
ヘルプ センター および File Exchange で Assumptions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!