Error Help saving values into array

조회 수: 1 (최근 30일)
CunKang S
CunKang S 2014년 2월 22일
답변: Yinguang Li 2014년 3월 18일
Conversion to cell from double is not possible.
Error in modelCar (line 40) Cell(1,T)= Rspeed;
^^Error Message
Im trying to store values of radialspeed function from the Phased array toolbox into an array but i keep encountering errors.
Below is an excerpt of the code
Cell = cell(1,12)
for T = 1:11
[POS,v] = step(H,T); Rspeed = radialspeed(POS,v,[25; 25; 70],[0; 0; 0]); typecast(Rspeed,'uint16'); Cell(1,T)= Rspeed; %%Rspeed = Vel.Radspeed(:,T);
disp(Rspeed);
end
Please assist.
Thank you

답변 (1개)

Yinguang Li
Yinguang Li 2014년 3월 18일
Try use the curved bracket Cell{1,T} = Rspeed
BTW, when you use typecast, why you don't return any values?

카테고리

Help CenterFile Exchange에서 Phased Array Design and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by