You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: Pbeam.m
    path of file: ./repos/NASTRAN_CoFE/nastran_cofe/cofe_models
    
    the code of the file until where you have to start completion: % Class for beam element properties.
% Used for bar element properties as well. 
% Anthony Ricciardi
%
classdef Pbeam < Property
    
    properties
        pid % [uint32] Property identification nu
    
function obj = setMaterial(obj,model)
            % access and save material data to property object - to save assembly time
            material = model.material.getMaterial(obj.mid,model,'Mat1');
            obj.E = material.E;
            obj.G = material.G;
            obj.rho = material.rho;
        end