How to plot time against a function with 2 variables

4 ビュー (過去 30 日間)
Yi-Shuan Liu
Yi-Shuan Liu 2021 年 12 月 2 日
回答済み: Kiran Felix Robert 2021 年 12 月 6 日
1 syms f(x,t) n inf
2 f(x,t)= (2/pi)*symsum((2/n)*sin(n*pi*x)*(1-exp(-0.2*n^2*pi^2*t)),n,1,inf)
3 fplot(f(x,t))
I am stuck on the 3rd line because it produces a blank plot. Can you show how to plot this function against time?

回答 (1 件)

Kiran Felix Robert
Kiran Felix Robert 2021 年 12 月 6 日
Hi Yi-SHuan Liu,
You can use fimplicit to plot multi-variable symbolic functions.
The following is an example,
syms f(x,t)
f(x,t) = x^2 + t^2 -1;
fimplicit(f , [0 1 0 1])

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by