Error using toolbox "pattern" function
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
César Borao Moratinos
el 2 de En. de 2023
Respondida: Steven Lord
el 5 de En. de 2023
Good morning to everyone,
I've got a problem when I try to use the "pattern" function provided by the satellite communications toolbox (https://es.mathworks.com/help/satcom/ref/satcom.satellitescenario.transmitter.pattern.html#d124e26691l).
When I run my script, the command window shows the following error:
Error using pattern
Conversion to pattern from satcom.satellitescenario.Transmitter is not possible.
The script is using the "pattern" built-in function (https://es.mathworks.com/help/matlab/ref/pattern.html) instead of using the toolbox function. I've tried to change the path variable to put the toolbox folder at the search top, but it didn't work .
A little help would be appreciated.
Regards.
4 comentarios
Rahul
el 5 de En. de 2023
"pattern" (Patterns to search and match text) is not a function. It is a documentation page containing various object functions related to strings and patterns. "pattern" could also be an array defined in R2020b.
Nevertheless, I did not receive any error after executing the code shared above. Please execute the following commands in the command window to pin point the issue. Please change the working directory where the above code is saved. Share the output so that I can help you in resolving the issue.
>> dir(pwd) % shows the files and folders of the current working directory
>> which pattern -all % shows all files with the name "pattern"
Respuesta aceptada
Steven Lord
el 5 de En. de 2023
According to the Version History section on its documentation page the pattern function in Satellite Communications Toolbox was "Introduced in R2021b". You will need to upgrade to release R2021b or later to use it.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Reference Applications 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!