Why am I getting an error diagnostic when trying to export data to a folder in my path definition?
    2 次查看(过去 30 天)
  
       显示 更早的评论
    
My path includes C:\Users\Emilio\Documents\MATLAB\Quants but when I try to export something to
filename=C:\Users\Emilio\Documents\MATLAB\Quants\Basic.xlsx;
I get the diagnostic below
         ↑
 Error: Invalid use of operator.
What am I doing wrong?
0 个评论
回答(1 个)
  Jan
      
      
 2018-7-8
        Please post the real code. I guess you did something like:
filename=C:\Users\Emilio\Documents\MATLAB\Quants\Basic.xlsx;
although you meant:
filename = 'C:\Users\Emilio\Documents\MATLAB\Quants\Basic.xlsx';
with quotes.
The small arrow ↑ points to the invalid operator. As soon as you post the original line, the problem gets clear.
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Configure and View Diagnostics 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

