Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - 日本語


comments

(// or /*...*/) comments

説明

文字列以外でスラッシュを2回続けたものは コメントの開始を意味します. この連続したスラッシュおよびその行のこれ以降の改行までの文字は 解釈されません.

Another way to comment a block of code is to use /* at the beginning and */ at the end. It is more useful than // which must be positioned at the beginning of each line to comment.

関数の内部で,最初の命令または空行までの最初のコメント行 は関数ヘルプのデフォルトの内容を指定するために使用することができます.

g=9.81// the gravity

text='a//b'

/* As this comment is quite long to be on many lines,
the symbols slash and star to start the comment
and star and slash to end the comment are used */

function y=myfunction(x)
  // myfunction は y=x^2+1 を計算します
  // x はベクトルまたは行列である必要があります
  y=x^2+1
endfunction

help myfunction

参照

  • head_comments — Scilab関数のヘッダのコメントを表示
  • slash — (/) 右除算およびフィードバック
  • backslash — (\) 左行列除算: exact or least square solution

履歴

バージョン記述
6.0 /* .. */ block comments introduced.
Report an issue
<< comma Scilab keywords comparison >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:43:08 CEST 2023