フィルターのクリア

I have these two errors when i try and run my script. Any help greatly appreciated

1 回表示 (過去 30 日間)
Ollie Middlebrook
Ollie Middlebrook 2022 年 12 月 8 日
コメント済み: Walter Roberson 2022 年 12 月 8 日

回答 (1 件)

VBBV
VBBV 2022 年 12 月 8 日
編集済み: VBBV 2022 年 12 月 8 日
T = [T tmpt]
From the error, it is possible that this condition
T(find(T==-9.99)) = NaN; %
is not satisfied in the last(215th) filename which will return a zero (empty) index value. In Matlab zero indexing is not used, only one based indexing is followed.
  3 件のコメント
Ollie Middlebrook
Ollie Middlebrook 2022 年 12 月 8 日
i deleted the last textfile which was empty but now it just says my vectors must be the same length. sorry im very new to matlab
Walter Roberson
Walter Roberson 2022 年 12 月 8 日
find will never return 0. It can return empty but assignment using empty index is permitted.
You do not show us what the error is.

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

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by