diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-20 13:57:56 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-20 13:57:56 +0200 |
| commit | fac231875693560adcbd6e3803592e27674dd2b4 (patch) | |
| tree | 2a25bb52829c3d3747f9132ede3c4aff71f991d9 | |
| parent | 62619cdb00de22afe4382e35facdc9fb941a6de2 (diff) | |
| download | tfyy51-fac231875693560adcbd6e3803592e27674dd2b4.tar.gz | |
Fix put_text
- Prints in "formatting mode" instead of terminal mode
- Correct argument formatting
| -rw-r--r-- | Kod/bilbana/yc4/display/put_text.m | 6 |
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 |
