Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
名前関数があり、f = @(x) x^2これをシンボリック関数に変換したいとします。そのための組み込みコマンドはありますか?
f = @(x) x^2
あなたはそれをSYMに渡すことができます:
f = @(x) x^2; g = sym(f)
subsしかし、ほとんどのシンボリック関数は、関数ハンドル( 、、intなど)を受け取ると自動的にそれを行います。
subs
int
Ruby on Rails で小さな Twitter クローンを作成しました。User モデル、Micropost モデル、および Relationships モデルがあります。リレーションシップ モデルには、フォローされているユーザー ID と、それに対応するフォロー ユーザー ID が格納されます。現在のユーザーがマイクロポストに一致するパラ