• Search
  • Register
  • Log in
  • The Math Root » Matlab
  • XML Elements preallocation, possible?
  •  
    User has not uploaded an avatar

    Hi,
    i need to know how to preallocate this "structure" because i need a performance increase ( 8 mins for this is too much to wait), can u help me?

    documento=com.mathworks.xml.XMLUtils.createDocument('ospedale');
    ospedale=documento.getDocumentElement;
    ospedale.setAttribute('azienda',num2str(azienda(1)));

    for i=1:length(codice_nosologico) %<----- this is 15901 long
    pratica(i)=documento.createElement('pratica');
    ospedale.appendChild(pratica(i));
    end

    #26
    Infobiz
    Member
    Posted 3 months ago
    RSS feed for this topic  

    Reply

    You must log in to post.

      Tags:

  •  © 2009 Anil Kandangath. All posts are owned by the whoever posted them. Share your knowledge.
    The Math Root is proudly powered by bbPress.. This site is not affiliated with The MathWorks™ or Wolfram Research. //   Theme by Mike Lothar  
    [ Time : 0.116s | 9 Queries ]