Help with saving to matlab

2 次查看(过去 30 天)
hey everyone, i am trying to save to matlab on my windows based computer but I get the error message (and warning) Warning: Invalid escape sequence appears in format string.
My code is attached (unfortunately this old comuter does not show the option to add nice code.)
i will not attach my function but here is me using it to call and save:
[code]
chooseEquation = 'poggiolini'; for att_db=0.19/1e3:0.01/1e3:0.20/1e3 %dirname =sprintf('C:\Documents and Settings\zceeg80\My Documents\MATLAB\simplifyCode %d',att_db);
[ResultsPogQPSK1 ] = MaxReachAnalytical(chooseEquation ,att_db);
fname= sprintf('C:\Documents and Settings\zceeg80\My Documents\MATLAB\simplifyCode\result.dat'); save(fname,ResultsPogQPSK1);
end [\code]
Anyone know what Im doing wrong? Thanks in advance!!
  3 个评论
u-will-neva-no
u-will-neva-no 2012-6-29
Thanks. Im having a little trouble with my matlab code and will rephrase it in a new post later today. Thanks for everyones input!

请先登录,再进行评论。

采纳的回答

TAB
TAB 2012-6-29
编辑:TAB 2012-6-29
Try
fname= sprintf('%s',...
'C:\Documents and Settings\zceeg80\My Documents\MATLAB\simplifyCode\result.dat')
See
>>doc sprintf
  3 个评论
u-will-neva-no
u-will-neva-no 2012-6-29
Sorry, How do I unflag the above?
u-will-neva-no
u-will-neva-no 2012-6-29
I think I have fixed that, sorry once again!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by