How would one check for installed MATLAB toolboxes in a script/function?

后端 未结 6 572
孤独总比滥情好
孤独总比滥情好 2020-12-13 02:36

How would one check for installed MATLAB toolboxes in a script/function? (checking toolbox versions would also be good!) This could provide a quick and useful error messag

6条回答
  •  不思量自难忘°
    2020-12-13 03:08

    a quick way is to list the contents of the toolboxes directory:

    l = ls( toolboxdir('') )
    

    using that list (excluding a few directories: shared,local), you can find out the version installed of a toolbox using ver:

    v = ver('nnet')
    

    as a reference, here's a list of the toolboxes directory names I had:

    bioinfo 
    curvefit
    database
    gads    
    ident   
    images  
    nnet    
    optim   
    pde     
    signal  
    stats   
    wavelet 
    

提交回复
热议问题