how to define 'e' or mpower

[EDIT: Used the code markup to format the code. -- the cyclist]
clear screen
clear all;close all;clc;
R= 50;
T =[0 50 100 150 200 250 300 350 400 450];
l= length(T);
for i=1:l
n=(-0.0023* mpower(log(e+1),2.7)* mpower(T,0.5)* mpower(R,0.6));
SS=0.85*(1-exp(n));
end

2 件のコメント

Walter Roberson
Walter Roberson 2012 年 5 月 12 日
I'm not sure what the question is? If "e" is intended to be the base of the common logarithm then e = exp(1). mpower() is a built-in MATLAB routine that would more commonly be written using the .^ operator, such as T.^0.5
Jan
Jan 2012 年 5 月 12 日
"clear screen; clear all; close all; clc;"? Do you have any reason to use this brute clearing?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

タグ

質問済み:

2012 年 5 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by