|
"Adam Lord" <adamtlord@gmail.com> wrote in message <igko1o$qal$1@fred.mathworks.com>...
> Hi all,
>
> I am attempting to plot a graph with the following lines of code:
>
> G_cur = 1/(l+(K_us.*(v_x.^2)./g));
>
> plot(v_x,G_cur,'g+');
> xlabel('v_x (m/s)')
> ylabel('G cur (1 / m rad)')
>
> but I am faced with this error (which I do not really understand):
>
> ??? Error using ==> mrdivide
> Matrix dimensions must agree.
>
> Error in ==> Car_B_Q2c at 14
> G_cur = 1/(l+(K_us.*(v_x.^2)./g));
>
> Does anyone have a suggestion for how I can fix it? I have tried several combinations of brackets and dots but nothing seems to work.
>
> Thanks
> Adam
Hi Adam, you should give us the sizes (dimensions) of K_us, v_x, and g.
Wayne
|