can anyone say why its coming error at 168 line ? please suggest me?
4 次查看(过去 30 天)
显示 更早的评论
%Calcul des coeff des polynomes p21 & p32
%pressure and temperature measurements at different levels.
[residus_montant,Stat_montant] = Calcul_Coef_21_32(SN,'montant',table_pression_kPa_montant,P_montant,T_montant);
[residus_descendant,Stat_descendant] = Calcul_Coef_21_32(SN,'descendant',table_pression_kPa_descendant,P_descendant,T_descendant);
%calculates the coefficients for a third scenario, labeled "full", which likely refers to the entire data set
[residus_full,Stat_full] = Calcul_Coef_21_32(SN,'full',table_pression_kpa,P,T);
error :
Error: File: Calcul_Coef_21_32.m Line: 1 Column: 3
Function definitions are not permitted in this context.
Error in extract_palier_P0_P21_P32_montant_descendant (line 168)
[residus_montant,Stat_montant] = Calcul_Coef_21_32(SN,'montant',table_pression_kPa_montant,P_montant,T_montant);
Error in autom_P0_montant_descendant (line 6)
Res =
extract_palier_P0_P21_P32_montant_descendant('SN2124009_Calib_2022-04-07','C:\Users\FX625040\Documents\Stage\Scripts
Matlab\P0\capteur2125011.txt',...
2 个评论
Rishav
2023-5-2
Hi md sazzad,
Can you provide the complete code, so that I can have a look at it and see what is the cause of this error?
Regards,
Rishav Saha
Walter Roberson
2023-5-2
In particular we need to see the first two lines of Calcul_Coef_21_32.m
I suspect that you have at least one extra character before a function statement.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!