Skip to content

Instantly share code, notes, and snippets.

@Irene-123
Created December 23, 2020 05:06
Show Gist options
  • Save Irene-123/8c529f906d8ae7270d23477946302314 to your computer and use it in GitHub Desktop.
Save Irene-123/8c529f906d8ae7270d23477946302314 to your computer and use it in GitHub Desktop.
Octave experiment
a=magic(4);
fprintf('The original matrix is:\n');
disp(a);
b=a.';
fprintf('\n');
fprintf('The transposed matrix is :\n');
disp(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment