Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Need the function or Equation that solve this kind of questions?
1 回表示 (過去 30 日間)
古いコメントを表示

1 件のコメント
madhan ravi
2020 年 10 月 24 日
madhan ravi:
What did you try?
Dodo:
Thanks alot for your reply. I searched and found that piece wise equation can solve it but but prof needs to be plotted the graph by the logical indeing method and don't know how to apply it and so on. becuse Piesce wise made a wrong plotting. Thanks in advance,
回答 (1 件)
Star Strider
2020 年 10 月 24 日
This is not your function, however it illustrates the ‘logical indexing’ approach:
f = @(x) (2-2*x).*(x <= 0) + (2+2*x).*(x>0);
t = linspace(-3, 3);
figure
plot(t, f(t))
grid
ylim([0 max(ylim)])
It is not difficult to figure out how it works. Be inspired by it!
3 件のコメント
Star Strider
2020 年 10 月 25 日
Walter — Thank you!
Dodo — We provide hints for homework assignments, not actual code. If you post the code you have written and are having problems with it, we will help you get it to run. We will not write it for you!
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!