What is the correct syntax to avoid 'Error: ()-indexing must appear last in an index expression'
Show older comments
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]
Accepted Answer
More Answers (0)
Categories
Find more on Operators and Elementary Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!