Dimensions of arrays being concatenated are not consistent.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Prapthi
am 31 Jan. 2023
Kommentiert: Sarvesh Kale
am 31 Jan. 2023
save_det_data = [detout(2,:)', detout(1,:)', Resel_agl', detout(3,:)',Resel_rng, Resel_vel, Resel_agl_deg];
2 Kommentare
Walter Roberson
am 31 Jan. 2023
Please show us
whos detout Resel_agl Resel_rng Resel_vel Reset_Agl_deg
I suspect one of the Resel* variables has more than one row.
Akzeptierte Antwort
Prapthi
am 31 Jan. 2023
3 Kommentare
Sarvesh Kale
am 31 Jan. 2023
The condition is evaluating to false, isempty function checks for empty array, the rng_excd_list must be empty which means isempty will return logical 1 and not of logical 1 will be 0 so the if block statement will not execute.
Weitere Antworten (1)
Sarvesh Kale
am 31 Jan. 2023
The command prompt is throwing error, make sure that detout array or function is defined in your workspace or the function is present in your present working directory, If the error thrown is 'Dimensions of arrays begin concatenated are not consistent' then probably you are trying to merge rows or different lengths or column vectors of different height.
a=[2,2,312,231];
b=rand(1,10);
[a;b] % this line will throw error
c={a;b} % this line will allow you to concatenate elements of different sizes
c{1} % this will get a, indexing into cell arrays !
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!