Convert norm Matlab Function to C

When use Matlab, I have use “norm” function. I have created a simple C code to convert this norm Matlab function. Please look code below :

Save code C norm code above with name norm.c. Please compile C norm code with command :

Below is testing C norm code result :

If you check using Matlab, you will get same result from my C Norm code.

Add a Comment

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.