Inquiry of file name as string format for Lua
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
joohyung
el 30 de En. de 2024
Respondida: Mathieu NOE
el 30 de En. de 2024
Hi
I'm trying to make a Matlab code for operating radar system in Lua shell enviroment.
Below is a command to start recording radar data in Lua system.
ar1.CaptureCardConfig_StartRecord(String FileName, 1)
In Matlab, below is a command to send the order to
Lua_String = sprintf('ar1.CaptureCardConfig_StartRecord(String FileName, 1);
ErrStatus = RtttNetClientAPI.RtttNetClient.SendCommand(Lua_String);
Then, what is the correct format for the 'String Filename' which in italic bold above??
For example, the file name is "adc_data.bin"
and output_filepath is "C:/ti/mmwave_studio_02_01_01_00/mmWaveStudio/PostProc/"
Thank you in advance,
Joo-Hyung Lee
0 comentarios
Respuesta aceptada
Mathieu NOE
el 30 de En. de 2024
hello
you can do a horizontal concatenation of char or string using strcat
filename="adc_data.bin"; % first string
output_filepath="C:/ti/mmwave_studio_02_01_01_00/mmWaveStudio/PostProc/"; %second string
s = strcat(output_filepath,filename) % output is also a string
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings 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!