Subscripted assignment dimension mismatch.

Hi,
Can anyone help me to figure this error?
Subscripted assignment dimension mismatch.
Error in (file name) (line 40) [conn_graph_uwb(i_uwb_seq, :, :), dist_graph_uwb(i_uwb_seq, :, :), std_graph_uwb(i_uwb_seq, :, :)] = ...
-------------------------------------------------------------
Here is my code:
[conn_graph_uwb(i_uwb_seq, :, :), dist_graph_uwb(i_uwb_seq, :, :), std_graph_uwb(i_uwb_seq, :, :)] = ... func_net_topo(area_min, area_max, net_node_pos, anchor_num, uwb_tran_range(i_uwb_seq), ... uwb_std_unit, std_power, uwb_fig_comm, i_uwb_seq, v_fig_legend, epsname);
v_conn_graph(:,:) = conn_graph_uwb(i_uwb_seq, :, :);
v_dist_graph(:,:) = dist_graph_uwb(i_uwb_seq, :, :);
v_std_graph(:,:) = std_graph_uwb(i_uwb_seq, :, :);
Really appreciate any prompt help. thanks! :)

回答 (1 件)

per isakson
per isakson 2014 年 9 月 8 日

0 投票

Hint:
>> m = zeros(1,3);
>> m(1,:) = cssm;
Subscripted assignment dimension mismatch.
where
function out = cssm
out = ones( 1, 12 );
end

この質問は閉じられています。

タグ

質問済み:

2014 年 9 月 8 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by