Info

This question is closed. Reopen it to edit or answer.

Subscripted assignment dimension mismatch.

2 views (last 30 days)
san Adam
san Adam on 8 Sep 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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! :)

Answers (1)

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

Tags

Community Treasure Hunt

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

Start Hunting!