i have this code. in this i replaced textread with textscan and run now it's showing the errors as index exceeds matrix dimensions .
v=input('Enter No. of Vehicles:');
n=input('Enter No. of Nodes:');
error message is
Enter No. of Vehicles:3
Enter No. of Nodes:6
Index exceeds matrix dimensions.
Error in Untitled (line 26)
can anyone help me in this.
thank you in advance.