two functions with descriptions in one graph
古いコメントを表示
for this code:
% approximating f
plot(X_in.', U.');
xlabel('x');
ylabel('approximate f(x)');
legend_strs = compose('Approximate f with h=%.2d', h);
legend(legend_strs);
I get the followin graph (for two different axis steps h = [0.2, 0.025]):

What I want is to add another function to the same graph (true function f) and to add a description of the line in the above right section saying "true function f".
say that f = cos(2x)
how can I do this?
Thank you.
2 件のコメント
VBBV
2020 年 11 月 28 日
What is the equation of true function f ?
danielle sisserman
2020 年 11 月 28 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Robust Control Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!