| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 멜버른
- 황평화
- 호주
- Rosie Banks
- Skilled Independent visa (subclass 189)
- 황예랑
- Book
- 평화
- 책
- 3분논문
- 제주여행
- 예랑이
- Monica Hwang
- IELTS
- Secret Kingdom
- 자작동화
- Book Review
- Yerang Monica Hwang
- General training module
- 그림
- australia
- SF
- Skilled Independent Migration
- 독립기술이민
- english writing
- 호주 이민
- 호주 영주권
- ielts writing
- melbourne
- Subclass 189
Archives
- Today
- Total
꾸로네
Octave(Matlab)에서 명령줄 이어쓰기 본문
옥타브(http://octave.org)라는 프로그램을 써서 코드를 만들다보면 변수이름이 길어지고, 여러 변수를 넣고 연산하는 식을 쓰다보면 식이 한 줄에 안 써지는 경우가 있다.1 그래서 다음 줄로 넘겨서 계속 이어서 쓰고 싶은 경우가 있는데, 이게 옥타브라는 물건은 행을 바꾸면 명령이 끝나는 것으로 인식하는 몇 안 되는 프로그램이다. 2 그게 평소에는 엔터만 치면 다음 줄로 넘어가고 새로운 명령이 시작되니 편한데, 식이 길어질 때는 문제가 된다. 그래서 찾아보니 이런 글이 있더라.3
Command Line Continuation
You can continue most statements to one or more additional lines by terminating each incomplete line with an ellipsis(...). Breaking down a statement into a number of lines can sometimes result in a clearer programming style.
sprintf ('Example %d shows a command coded on %d lines.\n', ... exampleNumber, ... numberOfLines)Note that you cannot continue an incomplete string to another line.
disp 'This statement attempts to continue a string ... to another line, resulting in an error.'
한 마디로 점 세개 ... 찍어주면 다음 줄로 이어진다는 뜻.
잊어버리기 싫어서 적어둔다. :)
'이런저런 이야기' 카테고리의 다른 글
| 우분투 깔았습니다 (6) | 2010.05.05 |
|---|---|
| 피라미드 저울의 눈금 실험 (20) | 2010.04.16 |
| 우리 연구실 문파 개념도 (10) | 2010.01.04 |
| 2009년 꾸로네 블로그 연말결산 - 통계를 통해서 본 블로그 (6) | 2010.01.04 |
| 이런저런 이야기 (8) | 2009.12.30 |
Comments