Posted to tcl by mjanssen at Tue Apr 12 22:41:37 GMT 2011view raw

  1. [23:31] <yy0621> rmax- Es%%i ,can't use in matlab
  2. [23:31] rmax yy0621: why not?
  3. [23:31] mjanssen yy0621 why cant you use that?
  4.  
  5. [23:40] rmax yy0621: let's try to get the whole picture:
  6. [23:40] mjanssen yy0621 are you creating the matlab script in Tcl?
  7. [23:40] * rmax was going to ask mjanssen's question.
  8. [23:40] rmax Ah - no, I was going to ask it the other way around: Are you creating a Tcl script from Matlab?
  9. [23:41] <yy0621> rmax:i can use %% instead % in matlab,but if i do this,i can not read Es%%i in other program.
  10.  
  11. [00:01] mjanssen yy0621 if you can explain the whole story, step by step with expected output we can tell you why you don't need it
  12. [00:01] rmax yy0621: we already gave you the answer to this question. Multiple times. Now we're trying to understand the core of your problem, so that we can guide you to a different solution.
  13.  
  14. [00:03] mjanssen yy0621 did you ever try the %%i option?
  15. [00:03] <yy0621> so sorry waste your time
  16. [00:04] mjanssen try it
  17. [00:04] <yy0621> mjanssen---i try it ,but it does not running
  18. [00:04] rmax ... and if you tried %%i and it failed, which error did you get from what program?
  19. [00:04] mjanssen what is the error?
  20.  
  21. [00:07] <yy0621> yes ,i can't use matlab calculate,so i can not change % to %%,because,if i became%%,i can't running it
  22. [00:07] rmax Don't speculate, try!
  23. [00:08] mjanssen yy0621 don't speculate
  24.  
  25. [00:18] mjanssen or simply Es$k
  26. [00:18] rmax ... or in the case of %i, just use Es$k .
  27.  
  28. [00:19] <yy0621> instead Es%i
  29. [00:20] rmax fprintf(fid,'set dataDir "Result$k";\n')
  30. [00:20] mjanssen fprintf(fid,'set dataDi"Result$k";\n')
  31. [00:20] * schelte enjoys seeing mjanssen and rmax continuously agreeing