Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.50 KB | None | 0 0
  1. function [s] = crea_S(rigamin, rigamax, colmin, colmax, mat)
  2.     if rigamin>rigamax
  3.         if colmin>colmax
  4.             %numeri
  5.             s=mat(rigamax:rigamin, colmax:colmin);
  6.         else
  7.             %numeri
  8.             s=mat(rigamax:rigamin, colmin:colmax);
  9.         end
  10.     else
  11.         if colmin>colmax
  12.             %numeri
  13.             s=mat(rigamin:rigamax, colmax:colmin);
  14.         else
  15.             %numeri
  16.             s=mat(rigamin:rigamax, colmin:colmax);
  17.         end
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement