how to calculate q1, q2, q3 at same w, from this function

3 ビュー (過去 30 日間)
uncung fgv
uncung fgv 2012 年 11 月 23 日
i have to calculate the value of
(S3-S2)/(S2-S1) =q1
(S4-S3)/(S3-S2)=q2
(S5-S4)/(S4-S3)=q3
(S6-S5)/(52-S4)= q4
until qn
from this function below:
k=[1,2,3,4,5,6,7];
x=2;
a=0.2 ;
w=(0:0.3:3)
S=cell2mat(arrayfun(@(k) 1-exp(-a*x*k.*w),k','un',0))
close
plot(w,S,'-+');
xlabel('w');
S1 is S at y ordinate of plot 1
S2 is S at y ordinate of plot 2
S3 is S at y ordinate of plot 3
until S7
at w1, w2, w3, until wn
so my goal:
i want to calculate the q1 until qn at w1 until wn for all plots.
so means :
q1, q2, ... qn at w1
next q1, q2, ... qn at w2
next q1, q2, ... qn at w3
next q1, q2, ... qn at w4
until wn.
so xlabel=w
ylabel=S
determination (S3-S2)/(S2-S1)=q1 (example)
and want to find q1, q2, q3,... qn at w1, w2, w3, w4...wn

回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by