Octave crashes everytime when executing matrix initialisation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Octave crashes everytime when executing matrix initialisation

Martin Sorch
Hello,
unfortunately Octave crashes everytime when I enter the following command:
Phi = [[1.995^-2 -1]; [1.985^-2 -1];[1.783^-2 -1;[1.064^-2 -1];[0.388^-2
-1];[0.127^-2 -1];[0.0373^-2 -1];[0.0204^-2 -1];[0.0052^-2 -1]]

Right after submitting this line nothing happens, the terminal seems to
freeze. When pressing ctrl+c the program crashes. I suppose it should
not behave like this.
Kind Regards


Reply | Threaded
Open this post in threaded view
|

Re: Octave crashes everytime when executing matrix initialisation

avlas-2
El diumenge, 3 de juny de 2018, a les 7:23:13 EDT, Martin Sorch va escriure:

  Hello,
  unfortunately Octave crashes everytime when I enter the following command:
  Phi = [[1.995^-2 -1]; [1.985^-2 -1];[1.783^-2 -1;[1.064^-2 -1];[0.388^-2
  -1];[0.127^-2 -1];[0.0373^-2 -1];[0.0204^-2 -1];[0.0052^-2 -1]]
 
  Right after submitting this line nothing happens, the terminal seems to
  freeze. When pressing ctrl+c the program crashes. I suppose it should
  not behave like this.
  Kind Regards
 
 
There is "]" missing, try:


  Phi = [[1.995^-2 -1]; [1.985^-2 -1];[1.783^-2 -1];[1.064^-2 -1];[0.388^-2
  -1];[0.127^-2 -1];[0.0373^-2 -1];[0.0204^-2 -1];[0.0052^-2 -1]]

Ctrl+C crash is fixed in Octave 4.4 as far as I know. What version are you using?

....
a.