user defined variable input
显示 更早的评论
If i have sample formula k=aX1*aX2*aX3*......*aXn. here X1,X2,...Xn are vector of X=[X1 X2 ... Xn]... if user input has only 2 component X1,X2 the output will be k=aX1*aX2. if user has n component in the vector then the output will be k=aX1*aX2*aX3*......*aXn. how to solve such a case
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Work with Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!