showing error on hash function

1 view (last 30 days)
Mirwise
Mirwise on 10 Oct 2023
Commented: Dyuman Joshi on 10 Oct 2023
hash = hash('sha256', [K; Na; Nb])
Undefined function 'hash' for input arguments of type 'char'
  2 Comments
Stephen23
Stephen23 on 10 Oct 2023
Please post a link to the documentation for a function named HASH that you think you are calling.
Dyuman Joshi
Dyuman Joshi on 10 Oct 2023
In addition to Stephen's comment, you are over-writing the function by using it at as a variable name. That is not a good coding practice. Use a different variable name.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!