SetWindowDas.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  3. <html><head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <!--
  6. This HTML was auto-generated from MATLAB code.
  7. To make changes, update the MATLAB code and republish this document.
  8. --><title>SetWindowDas</title><meta name="generator" content="MATLAB 7.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2012-03-02"><meta name="DC.source" content="SetWindowDas.m"><style type="text/css">
  9. body {
  10. background-color: white;
  11. margin:10px;
  12. }
  13. h1 {
  14. color: #990000;
  15. font-size: x-large;
  16. }
  17. h2 {
  18. color: #990000;
  19. font-size: medium;
  20. }
  21. /* Make the text shrink to fit narrow windows, but not stretch too far in
  22. wide windows. */
  23. p,h1,h2,div.content div {
  24. max-width: 600px;
  25. /* Hack for IE6 */
  26. width: auto !important; width: 600px;
  27. }
  28. pre.codeinput {
  29. background: #EEEEEE;
  30. padding: 10px;
  31. }
  32. @media print {
  33. pre.codeinput {word-wrap:break-word; width:100%;}
  34. }
  35. span.keyword {color: #0000FF}
  36. span.comment {color: #228B22}
  37. span.string {color: #A020F0}
  38. span.untermstring {color: #B20000}
  39. span.syscmd {color: #B28C00}
  40. pre.codeoutput {
  41. color: #666666;
  42. padding: 10px;
  43. }
  44. pre.error {
  45. color: red;
  46. }
  47. p.footer {
  48. text-align: right;
  49. font-size: xx-small;
  50. font-weight: lighter;
  51. font-style: italic;
  52. color: gray;
  53. }
  54. </style></head><body><div class="content"><pre class="codeinput"><span class="keyword">function</span> SetWindowDas()
  55. <span class="keyword">global</span> Par
  56. NumWins = size(Par.WIN, 2);
  57. WIN = Par.WIN;
  58. dassetwindow( NumWins, WIN(:), Par.Bsqr, Par.SCx*Par.xdir, Par.SCy*Par.ydir )
  59. <span class="comment">%third parameter is bool; square (1) or ellips (0)</span>
  60. <span class="comment">%Mouserun; use mouse instead of das input</span>
  61. </pre><pre class="codeoutput">Attempt to reference field of non-structure array.
  62. Error in ==&gt; SetWindowDas at 3
  63. NumWins = size(Par.WIN, 2);
  64. </pre><p class="footer"><br>
  65. Published with MATLAB&reg; 7.11<br></p></div><!--
  66. ##### SOURCE BEGIN #####
  67. function SetWindowDas()
  68. global Par
  69. NumWins = size(Par.WIN, 2);
  70. WIN = Par.WIN;
  71. dassetwindow( NumWins, WIN(:), Par.Bsqr, Par.SCx*Par.xdir, Par.SCy*Par.ydir )
  72. %third parameter is bool; square (1) or ellips (0)
  73. %Mouserun; use mouse instead of das input
  74. ##### SOURCE END #####
  75. --></body></html>