summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Kod/bilbana/yc4/display/put_text.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m
index 95dbb26..5b80192 100644
--- a/Kod/bilbana/yc4/display/put_text.m
+++ b/Kod/bilbana/yc4/display/put_text.m
@@ -1,9 +1,9 @@
function [pkg] = put_text(x, y, justification, text)
- code = double(join('Z', justification))
+ code = double(strjoin({'Z', justification}, ''));
- arg1 = [x, 0, y, 0]
+ arg1 = [x, 0, y, 0];
arg2 = text;
arg3 = 0;
- pkg = get_package(join('Z', justification), [arg1 arg2 arg3])
+ pkg = get_package(code, [arg1 double(arg2) arg3]);
end