Writing the dirac function as a function handle
1 view (last 30 days)
Hi I want to write the dirac function at $i$ as a function handle, for example the code will look something like this
dirac_i = @(x) 1 if x=i
But I know I cant use if statements in my function handle, so how should I do this?