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)只需访问tscale. 在这种情况下,它是 7/3 或 2.3333。在 Matlab 中,重要的是要注意矩阵的索引从 1 开始,而不是像许多其他编程语言一样从 0 开始。
tscale
它返回 7/3。tScale = [ 7/2 7/3 ]创建一个包含 2 个元素的向量。tScale(2)返回第二个元素。
tScale = [ 7/2 7/3 ]
tScale(2)