Inquiry of file name as string format for Lua
5 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Mathieu NOE
on 30 Jan 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 Comments
More Answers (0)
See Also
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!