[Solved] octave Error: -error: ‘squareThisNumber‘ undefined near line 1 column 1

. M file name should also be capitalized: squarethisnumber m

Question 2:

parse error near line 1 of file C:\Users\asus\squareThisNumber. m

syntax error

>>> {\rtf1\ansi\ansicpg936\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset134 \’cb\’ce\’cc\’e5;}}

Solution: the WordPad program (nodepad) opens the file and finds many redundant characters. Delete them and add endfunction at the end.

Read More: