Inquiry of file name as string format for Lua

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

 Réponse acceptée

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
s = "C:/ti/mmwave_studio_02_01_01_00/mmWaveStudio/PostProc/adc_data.bin"

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by