How to define functon Unit sample sequence
Show older comments
function [x,n]=edinecenImpuls(n0,n1,n2)
n=[n1:n2]; x=[(n-n0)==0];
I can't define this function in MATLAB It says " Use of brackets [] is unnecessary. Use parentheses to group, if needed."
I don't know what is wrong please help
Accepted Answer
More Answers (1)
Gilbert
on 24 Sep 2023
0 votes
function [x,n]=edinecenImpuls(n0,n1,n2)
n=n1:n2;
x=(n-n0)==0;
1 Comment
Walter Roberson
on 24 Sep 2023
Categories
Find more on Signal Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!