Arithmetic division for cell array
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sherif Shokry
am 20 Dez. 2017
Kommentiert: Sherif Shokry
am 20 Dez. 2017
I have 2 cell arrays (same dimensions). How can I divide only the variables in the 2nd array in the 1st cell array over the 2nd array in the 2nd cell array
veh_speeds = vis.Net.Vehicles.GetMultiAttValues('Speed'); % 203x2 cell
veh_positions = vis.Net.Vehicles.GetMultiAttValues('Pos'); % 203x2 cell
4 Kommentare
James Tursa
am 20 Dez. 2017
Many of us do not want to open a pdf file. Please post text showing a small sample of cell arrays and then list exactly what you would want for a result.
Akzeptierte Antwort
Birdman
am 20 Dez. 2017
Pos=cell2mat(veh_positions(:,2));
Vel=cell2mat(veh_speeds(:,2));
Result=Pos./Vel
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!