Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Depak Singh
Depak Singh am 1 Mär. 2020
Kommentiert: Image Analyst am 1 Mär. 2020
Code
  2 Kommentare
dpb
dpb am 1 Mär. 2020
Use "dot" operators.
Image Analyst
Image Analyst am 1 Mär. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by