Obtain an output in sequential multiplication using matlab

Hi all,
Can anyone help with proper codes in matlab to implement the program below:
% constants
n = 1;x=2;P=4;
Zc = 95;
Zo = 100;
% range of m to be computed for ZB
m = 0:10:800;
ZB = 1+((m)*sin(2*pi*n*x/P));
% Z1 for the range m = 0:10:800
Z1= abs(Zc*Zo*ZB);
% Sequential Z1 output multiplication
Zt = Z1*Z1*...*Zn % output from Z1 multiplied sequentially to the last one Zn
Hint: Z1... Zn are matrices

 采纳的回答

You have not defined Z2 or Zn, only ZB, Z1, Zc and Zo. You never use ZB after defining it.
Meanwhile please read

2 个评论

Thanks Z2 is the second output answer ,Z3 is the third output answer upto the last output answer Zn i.e Z1*Z1*Z1*Z1...Zn.I just need codes to implement it correctly.
Thanks.The computer only computed for one Z1 output ignoring the rest outputs.I think there is need to include a code to reference all the Z1 outputs before using the product syntax or what do you think can solve this?

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by