How I can to realize this function
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello to everyone!
I need help in solving this function, please!
I tried to solve it with different methods, but nothing worked.
here is my last solution which doesn't work either.
댓글 수: 3
Rik
2020년 11월 7일
Unfortunately for Vladislav Tepper, Google keeps a cache. So If you want to cheat, you will have to be a bit more cunning. Or not post on a public forum.
How I can to realize this function
Hello to everyone!
I need help in solving this function, please!
I tried to solve it with different methods, but nothing worked.
here is my last solution which doesn't work either.
답변 (2개)
Alan Stevens
2020년 11월 7일
Use indexing:
Parabula = @(n) n.^2;
n = -2:6;
y = Parabula(n);
y(n<1 | n>5) = 0;
stem(n,y)
axis([-10 10 0 30])
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!