How to make a matrix with negative indexes?

22 ビュー (過去 30 日間)
Brooke Gest
Brooke Gest 2019 年 4 月 19 日
コメント済み: Stephen23 2019 年 4 月 19 日
I keep trying to make a matrix with negative indexes but this error pops up: Array indices must be positive integers or logical values. Does anyone know how to fix this?
  1 件のコメント
Stephen23
Stephen23 2019 年 4 月 19 日
It sounds as if you might be trying to define a function of an independent variable. Please explain your algorithm in more detail.

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2019 年 4 月 19 日
Modify
Another approach is to sprintf() the list of indices into a character vector, and use that as a key for containers.Map() . Some work would be involved if you wanted to use : indices or range indices.

Image Analyst
Image Analyst 2019 年 4 月 19 日
It's explained pretty well in the FAQ: click here

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by