Chol(A) not working

I can’t get chol(A) to work. Checked in Matlab and it works. So I’m a bit helpless…
This is my script

A = [4 -2 6; -2 5 -1; 6 -1 26]
B = chol(A)

But if I run it i get the follwing error message

error: invalid call to script C:\Users\[Username]\Desktop\chol.m
error: called from
    chol at line 2 column 3

I hope somebody can help me out. May be a little thing.

My system

  • OS: Windows 10 Pro (version 20H2)
  • Octave version: Version 6.1.0
  • Installation method: Downloaded and installed “octave-6.1.0-w64-installer.exe” from

I named my script chol.m. That was the pitfall. Renamed it and it works now.