How can I represent this equation on MATLAB

1 view (last 30 days)
How can I represent this equation on MATLAB
𝑌[𝑛]=3𝑛2−1 𝑤ℎ𝑒𝑟𝑒 −2≤𝑛<3

Accepted Answer

Mahmoud Ashraf
Mahmoud Ashraf on 28 Apr 2022
if i read the equation corrently this code with product the value of y in vector
clear all;
clc
for n=-2:3
y(1,n+3)=3*(n^2)-1;
end

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!