Index in position 1 exceeds array bounds (must not exceed 1)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
This is my script :
kwh=input('How much KWH this month :');
ckwh=6.6*kwh/100;
fprintf('Your charge for %5d will be %.2d',kwh,ckwh)
Matlab return this : Index in position 1 exceeds array bounds (must not exceed 1).
Help me please !!!
0 Commenti
Risposte (2)
madhan ravi
il 23 Set 2019
Modificato: madhan ravi
il 23 Set 2019
clear all % you're probably shadowing the inbuilt function input()\fprintf()
%or
clear input fprintf
0 Commenti
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!