Hello Emran Khander
                            
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
                            If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
                         
                     
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2013/05/02 6:05 GMT-4                            
                        
                        
                                                    Dear Emeran
i hope that you are well, i want to simulate the dispersion curve in comsol by changing the acoustic freq., so please if you have idea for which Eq. i must you to draw the curve between the K and Freq. ?
Best regards                                                
                                                
                            Dear Emeran
i hope that you are well, i want to simulate the dispersion curve in comsol by changing the acoustic freq., so please if you have idea for which Eq. i must you to draw the curve between the K and Freq. ?
Best regards                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                2013/05/02 9:42 GMT-4                            
                        
                        
                                                    Hi Emran,
I believe matlab does not have an easy way to derivate as (for example) Mathematica does.
The reason is that numerical derivation is not a trivial subject.
As a first approach you can use the polyfit function in matlab and then derivating the output order-m polynomial is a trivial task. But beware! this is only accurate if your interpolated data behaves as a polynomial of order m. 
Recently, I had to implement the Richardson's method to find the group dispersion (second derivate) for very low values in a very noisy function. I found this method very accurate and easy to implement. Check Numerical Recipes (
www.nr.com) and look for the dfridr function that explains the mentioned algorithm.
cheers,
--
Felipe BM                                                
 
                                                
                            Hi Emran,
I believe matlab does not have an easy way to derivate as (for example) Mathematica does.
The reason is that numerical derivation is not a trivial subject.
As a first approach you can use the polyfit function in matlab and then derivating the output order-m polynomial is a trivial task. But beware! this is only accurate if your interpolated data behaves as a polynomial of order m. 
Recently, I had to implement the Richardson's method to find the group dispersion (second derivate) for very low values in a very noisy function. I found this method very accurate and easy to implement. Check Numerical Recipes (www.nr.com) and look for the dfridr function that explains the mentioned algorithm.
cheers,
--
Felipe BM