clear
clc
close all
x = linspace(-8, 8, 19);
y = (x.*((x.^2)-1)/((x.^2)+1).^2);
figure
plot(x, y)

Réponses (1)

Ameer Hamza
Ameer Hamza le 5 Déc 2020
Modifié(e) : Ameer Hamza le 5 Déc 2020

0 votes

You need to use element-wise division
y = (x.*((x.^2)-1)./((x.^2)+1).^2);
%^ put a dot here

2 commentaires

salar rohani nejad
salar rohani nejad le 5 Déc 2020
thank you so much
Ameer Hamza
Ameer Hamza le 5 Déc 2020
Modifié(e) : Ameer Hamza le 5 Déc 2020
I am glad to be of help!!!

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by