cell assignment errors, Please leave me some suggestions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7269
    Hansong Xu
    Participant

    Hello Friends,

    Does somebody have ideas on the errors or suggestions, please,
    It looks like two errors, One is the ‘length(varargin)<1’ another one is the ‘output argument not assigned’.
    The function is listed below,

    Thanks

    “Error in channel_gain_wrappers.macroscopicPathlossMap/cell_assignment (line 120)
    if length(varargin)<1

    Error using channel_gain_wrappers.macroscopicPathlossMap/cell_assignment
    Output argument “b_” (and maybe others) not assigned during call to
    “channel_gain_wrappers.macroscopicPathlossMap/cell_assignment”.

    Error in LTE_init_generate_users_and_add_schedulers (line 185)
    [ site_id sector_num eNodeB_id] =
    networkPathlossMap.cell_assignment(UEs(u_).pos);”

    function [b_ s_ s_idx] = cell_assignment(obj,pos,varargin)
    if length(varargin)<1
    x_ = pos(1);
    y_ = pos(2);
    else
    x_ = pos(1);
    y_ = varargin{1};
    end
    if max([x_ y_] < [obj.roi_x(1),obj.roi_y(1)]) >= 1
    eNodeB_id = NaN;
    sector_num = NaN;
    elseif max([x_ y_] > [obj.roi_x(2),obj.roi_y(2)]) >= 1
    eNodeB_id = NaN;
    sector_num = NaN;
    else
    % Some interpolation could be added here, but not so useful to have so much precision, actually…
    pixel_coord = LTE_common_pos_to_pixel([x_ y_],obj.coordinate_origin,obj.data_res);
    s_idx = obj.sector_assignment(pixel_coord(2),pixel_coord(1));
    b_s_ = obj.sector_idx_mapping(s_idx,:);
    b_ = b_s_(1);
    s_ = b_s_(2);
    end
    end

    #7329

    Dear Hansong,

    Check UEs.pos variable in the LTE_init_generate_users_and_add_schedulers.m. It should be a row vector with two values [x, y], which seems not to be in your case, witht eh erros you got.

    Best regards,
    Fjolla

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.