Lars Gregersen
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                4 years ago                            
                            
                                20 sept. 2021, 04:25 UTC−4                            
                        
                        
                                                    Hi Swarnadhar
Your script that contains calls to flclear, fem.const etc. are older than Comsol version 4.0, which was released in 2010. The commands for using Matlab with Comsol changed at that time. You can't use the old script anymore.
I suggest that you recreate the model using the Comsol user interface using a modern version of Comsol. Once you have done that you can use LiveLink for Matlab to automate the interaction between Comsol and Matlab.
I your screenshots I also see error messages related to general Matlab errors. You need to inspect your scripts for proper naming of variables etc.
    -------------------
    Lars Gregersen
Comsol Denmark                                                
 
                                                
                            Hi Swarnadhar 
Your script that contains calls to flclear, fem.const etc. are older than Comsol version 4.0, which was released in 2010. The commands for using Matlab with Comsol changed at that time. You can't use the old script anymore.
I suggest that you recreate the model using the Comsol user interface using a modern version of Comsol. Once you have done that you can use LiveLink for Matlab to automate the interaction between Comsol and Matlab.
I your screenshots I also see error messages related to general Matlab errors. You need to inspect your scripts for proper naming of variables etc.