"examples/vscode:/vscode.git/clone" did not exist on "6a21b232a71d943ce67732982a4fb085cb55c3cb"
Commit 279e4d40 authored by Davis King's avatar Davis King
Browse files

Added more stuff to the example.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402723
parent 0f89c0f6
......@@ -176,6 +176,9 @@ int main()
// MATLAB: A = B(1,:)
A = rowm(B,0);
// MATLAB: A = B([1:2],:)
A = rowm(B,range(0,1));
// MATLAB: A = B(:,1)
A = colm(B,0);
......@@ -201,8 +204,6 @@ int main()
B = 5;
// or equivalently
set_all_elements(B,5);
// or equivalently
set_subm(B,get_rect(B)) = 5;
// MATLAB: B([1:2],[1,2]) = 7
......@@ -214,6 +215,9 @@ int main()
// MATLAB: B(:,1) = 4
set_colm(B,0) = 4;
// MATLAB: B(:,[1:2]) = 4
set_colm(B,range(0,1)) = 4;
// MATLAB: B(:,1) = B(:,2)
set_colm(B,0) = colm(B,1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment