Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコード スニペットがあるとします。
tscale = [7/2 7/3]; L = (tscale(2) - 1)/2;
は何をしtscale(2)ますか?
tscale(2)
tscale(2)の 2 番目の要素にアクセスするだけtscaleです。この場合、7/3 または 2.3333 です。Matlab では、他の多くのプログラミング言語と同様に、行列が 0 ではなく 1 から始まることに注意することが重要です。
tscale
7/3 を返します。tScale = [ 7/2 7/3 ]2 つの要素を持つベクトルを作成します。tScale(2)2 番目の要素を返します。
tScale = [ 7/2 7/3 ]
tScale(2)