命令如下:
clear;
E=[];
for L=0:0.1:2;
E=Tube_Transfer(L);%%调用函数Tube_Transfer
end
结果如下:
E =
0.2461
E =
0.1649
等等吧~~~~~~~~~~~~~目的:想保存这些E,可以直接在WORKSPACE中直接看到!!!

 Réponse acceptée

nacovav
nacovav le 19 Nov 2022

0 votes

L=0:0.1:2;
E=zeros(size(L));
for l=1:length(L);
E(l)=Tube_Transfer(L(l));%%调用函数Tube_Transfer
end

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 快速入门 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!