现有两个m文件,均有最终的结果,如何构造函数,使trend_1的计算结果加到trend_main中,即把trend_1中的v1、v2、v3、v4、v5加到trend_main对应的计算结果中。希望可以再有个m文件,在这个m文件实现相加,怎么调用,求教!

 Réponse acceptée

twaccos
twaccos le 16 Mai 2023

0 votes

构造函数:function [v1,v2,v3,v4,v5]=trend_1();
然后在tremd_main.m文件中调用trend_1函数,调用格式如下:
[v1,v2,v3,v4,v5]=trend_1();

Plus de réponses (0)

Catégories

En savoir plus sur 数据导入和分析 dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!