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

조회 수: 4 (최근 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 CenterFile Exchange에서 Creating, 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