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{:});

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks