在循环中,将给定矩阵的值存储在数组中

时间:2013-04-06 11:45:07

标签: arrays matlab loops for-loop store

我有以下代码

clc
clear

fcm=65

for t = 0.1:0.01:28
    s = 0.2;
    Bcc = exp(s*(1-(28/t)^0.5));
    fcmt = fcm *Bcc
end

我想将给定矩阵的值存储在数组中,我该怎么做?

1 个答案:

答案 0 :(得分:0)

clc,clear all,close all

fcm = 65;
s = .2;
t = .1:.01:28;

Bcc = exp(s.*(1-(28./t).^0.5));
fcmt = fcm*Bcc;

我希望这会有所帮助。