How to do differentiation in Matlab
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Anurag Sharma
 el 28 de Mayo de 2024
  
clc;
clear;
THT = 0:12:360;
L_spm = [67.14387343 67.08087868 71.27139857 77.8011002	83.48598354	86.53313448	86.96218524	86.54264509	86.55222711	86.96002063	86.43128473	83.48041917	77.77271123	71.24225453	67.07111986	67.25745156	67.08157624	71.23009025	77.76475253	83.46615144	86.42639244	86.96777069	86.54247287	86.56340306	86.9412182	86.52945688	83.49766473	77.78259172	71.25635182	67.06788196	67.14602485];
How to differentiate L_spm with respect to THT? Thanks.
0 comentarios
Respuesta aceptada
  James Tursa
      
      
 el 28 de Mayo de 2024
        
      Editada: James Tursa
      
      
 el 28 de Mayo de 2024
  
      Are you just asking for piecewise linear differencing for derivative calculations between the points?  E.g.,
THT = 0:12:360;
L_spm = [67.14387343 67.08087868 71.27139857 77.8011002	83.48598354	86.53313448	86.96218524	86.54264509	86.55222711	86.96002063	86.43128473	83.48041917	77.77271123	71.24225453	67.07111986	67.25745156	67.08157624	71.23009025	77.76475253	83.46615144	86.42639244	86.96777069	86.54247287	86.56340306	86.9412182	86.52945688	83.49766473	77.78259172	71.25635182	67.06788196	67.14602485];
d = diff(L_spm) ./ diff(THT)
Or are you asking how to curve fit and calculate derivatives from the curve?
2 comentarios
  Torsten
      
      
 el 29 de Mayo de 2024
				
      Editada: Torsten
      
      
 el 29 de Mayo de 2024
  
			THT = 0:12:360;
L_spm = [67.14387343 67.08087868 71.27139857 77.8011002	83.48598354	86.53313448	86.96218524	86.54264509	86.55222711	86.96002063	86.43128473	83.48041917	77.77271123	71.24225453	67.07111986	67.25745156	67.08157624	71.23009025	77.76475253	83.46615144	86.42639244	86.96777069	86.54247287	86.56340306	86.9412182	86.52945688	83.49766473	77.78259172	71.25635182	67.06788196	67.14602485];
d = gradient(L_spm)./gradient(THT);
plot(THT,d)
Más respuestas (0)
Ver también
Categorías
				Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
