Hallo
Ich bekomme diese Warnung:
Warning: Integer operands are required for colon operator when used as index.
Kann mir wer sagen was das bedeuten soll???
Danke
Mfg Stefan
Hallo
Ich bekomme diese Warnung:
Warning: Integer operands are required for colon operator when used as index.
Kann mir wer sagen was das bedeuten soll???
Danke
Mfg Stefan
Hallo,
hier die Antwort von der mathworks-Seite:
http://www.mathworks.com/support/tech-notes/1200/120…
(Grob gesagt, du verwendest eine Komma-zahl als Zähl- oder Laufvariable. Damit kommt Matlab natürlich nicht klar.)
Section 41: Integer Operands Are Required for Colon Operator When Used as Index
Warning: Integer operands are required for colon operator
when used as index.
Explanation:
You have used a noninteger value as one of the parameters (starting value, increment, or stopping value) for the colon ( operator when using it to create a vector of indices to reference into a function.
Common causes:
You performed computations to obtain the starting or stopping values for the indexing but the result of those computations was not exactly an integer.
Solution:
Modify the index computations using the FIX , FLOOR , CEIL , or ROUND functions to ensure that the indices are integers. You can test if a variable contains an integer by comparing the variable to the output of the ROUND function operating on that variable when MATLAB is in debug mode on the line containing the variable.
Example demonstrating this error:
IntegerOperandsRequired.m
Gerhard
Hallo
Danke für deine Antwort
Ich habe das Wort colon nicht verstanden aber jetzt ist alles klar.
Mfg Stefan