problem after new license
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
fatemeh abdi
el 7 de Dic. de 2023
Comentada: fatemeh abdi
el 8 de Dic. de 2023
Hello,
Matlab had a notification for updating and new license on 6 December.
After updating and receiving the new license, I could not run a script that I had run before.
I wanted to read txt file and do some calculations.
-------------
Array indices must be positive integers or logical values.
Error in untitled (line 21)
fft_out_hdl = sqrt(hexData1.Var1.^2 + hexData3.Var1.^2 + hexData4.Var1.^2)/(2.^32) ;
---------------------------
I decided to use Matlab online.
My script works fine in Matlab Online, but I had this error in the new updated version.
Please give me suggestion how to solve the error
Thank you for considering this matter.
Best regards
Fatemeh
2 comentarios
Dyuman Joshi
el 7 de Dic. de 2023
Can you share the script, so we can reproduce the error?
It is weird though, you get that error for the line in which there is no array indexing.
There might be more information in the error message, so please share the full error message i.e. all of the red text.
fatemeh abdi
el 7 de Dic. de 2023
Editada: Walter Roberson
el 7 de Dic. de 2023
Respuesta aceptada
Walter Roberson
el 7 de Dic. de 2023
In your workspace you have a variable named sqrt .
You need to
clear sqrt
3 comentarios
Dyuman Joshi
el 8 de Dic. de 2023
@fatemeh abdi, please share the output of this command -
which sqrt -all
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!