Write a syntax to plot a 2D graph of function 1/( 2x^2 - 1).

1 回表示 (過去 30 日間)
Depak Singh
Depak Singh 2020 年 3 月 1 日
コメント済み: Image Analyst 2020 年 3 月 1 日
Code
  2 件のコメント
dpb
dpb 2020 年 3 月 1 日
Use "dot" operators.
Image Analyst
Image Analyst 2020 年 3 月 1 日
That is a 1-D signal. What do you mean by 2-D graph? You mean just a regular plot of a 1-D signal? Or do you want some kind of image or surface plot where that x-function varies along each of the x and y directions?
Is this homework? If so read this link.

サインインしてコメントする。

回答 (1 件)

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020 年 3 月 1 日
x = 1:10;
y = 1./(2*x.^2-1);
figure,plot(x,y)

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by