Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = 5;
- printf("Hello\n");
- function res = myFunct(a,b)
- res = a+b;
- endfunction;
- res = myFunct(10,5);
- printf("Result: %d\n",res);
- Vector = [];
- Vector = vertcat(Vector,[1]);
- Vector = vertcat(Vector,[4]);
- printf("Length of Vector: %d\n",length(Vector));
- printf("Result: %d\n",Vector(1));
- for k=1 : length(Vector)
- printf("%d. element is the: %d\n",k,Vector(k));
- endfor;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement