#26 cat.m and resize.m

closed
Chuong Nguyen
None
5
2008-03-07
2008-02-22
Chuong Nguyen
No

FreeMat lacks cat() and resize() so I add them here. I wrote these files so no legal problems to use them.

Discussion

  • Chuong Nguyen
    Chuong Nguyen
    2008-02-22

    Concatenation of arrays

     
    Attachments
  • Chuong Nguyen
    Chuong Nguyen
    2008-02-22

    Logged In: YES
    user_id=1938477
    Originator: YES

    File Added: resize.m

     
  • Chuong Nguyen
    Chuong Nguyen
    2008-02-22

    Destructively resize

     
    Attachments
    • assigned_to: nobody --> chuongnguyen
     
  • Chuong Nguyen
    Chuong Nguyen
    2008-02-27

    Logged In: YES
    user_id=1938477
    Originator: YES

    my cat function doesn't allow this concanation:
    --> a = zeros(3,3,3);
    --> b = zeros(3,3);
    --> c = cat(3,a,b); ==> fail
    Also it requires size_equal.m which I add here. I need to rework on cat function.

     
  • Chuong Nguyen
    Chuong Nguyen
    2008-02-27

     
    Attachments
  • Chuong Nguyen
    Chuong Nguyen
    2008-02-27

    Logged In: YES
    user_id=1938477
    Originator: YES

    File Added: size_equal.m

     
  • Logged In: YES
    user_id=307006
    Originator: NO

    resize is not standard.

     
  • Chuong Nguyen
    Chuong Nguyen
    2008-03-07

    Logged In: YES
    user_id=1938477
    Originator: YES

    Thanks. I didn't realize this. resize is an Octave built-in function and I wrote it when trying to port Octave files. So just ignore it. I now close this comment.

     
  • Chuong Nguyen
    Chuong Nguyen
    2008-03-07

    • status: open --> closed