What is the correct syntax to avoid 'Error: ()-indexing must appear last in an index expression'
Ältere Kommentare anzeigen
Hello, trying to make this code more interactive and efficient:
%Ask user Flight Condition
FlightCond=input('Which flight condition?')
for j = 1:numel(manoev)
DataSetU(num2str(FlightCond))=DataBase((numel(FlightCond)),j);
%<-problem here?
end
%Ask user which manoevre
time=(DatasetU(num2str(manoev))(:,1));
q=DatasetU(num2str(manoev))(:,4);
thanks
Note: DataBase is a cell array 3x5 manoev=[1 2 3 4 5]
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!