Unexpected MATLAB expression when trying to load file
显示 更早的评论
I am trying to load a file into Matlab and I am getting an unexpected MATLAB expression in the first line of code below:
function [data,loginfo]=LoadZmachineData('C:\ProgramData\ZmachineDataViewer\name\Import0\data200\00000.bin')
loginfo = parse_wbpp_log_public(strrep(file_name,'bin','LOG'));
The warning from MATLAB when hovering over this code reads:
"Invalid syntax, possibly missing a ')'" "Use a newline, semnicolon or comma before this statement" "Parse error at ')' might be invalid MATLAB syntax)"
I have tripled checked that the path is correct.
Thank you for your time.
2 个评论
Geoff Hayes
2018-3-27
Edward - can you post the code instead? i.e. please attach the m-file with just those lines of code that are showing the error.
Edward Szczygiel
2018-3-27
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!