how to calculate q1, q2, q3 at same w, from this function
2 次查看(过去 30 天)
显示 更早的评论
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 Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!