Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /inst/__time_response__.m [04d129] .. [3f67d0] Maximize Restore

  Switch to side-by-side view

--- a/inst/__time_response__.m
+++ b/inst/__time_response__.m
@@ -175,7 +175,7 @@
       if (ct_idx(k))                                    # continuous-time system                                           
         for i = 1 : p                                   # for every output
           for j = 1 : cols                              # for every input (except for initial where cols=1)
-            if (p != 1 && cols != 1)
+            if (p != 1 || cols != 1)
               subplot (p, cols, (i-1)*cols+j);
             endif
             plot (t{k}, y{k}(:, i, j), style{:});
@@ -196,7 +196,7 @@
       else                                              # discrete-time system
         for i = 1 : p                                   # for every output
           for j = 1 : cols                              # for every input (except for initial where cols=1)
-            if (p != 1 && cols != 1)
+            if (p != 1 || cols != 1)
               subplot (p, cols, (i-1)*cols+j);
             endif
             stairs (t{k}, y{k}(:, i, j), style{:});