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

 채택된 답변

Mathieu NOE
Mathieu NOE 2024년 1월 30일
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"

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2024년 1월 30일

답변:

2024년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by