Loop over non-numeric stuff

Hello,
I defined a vector of variables in my code like this
x=sym('x', [m,1])
then I defined a matrix M as follows
M=zeros(m,2)
I want to ask the user through a message to insert the upper and lower bounds of the ith variable in x respectively
then at the ith loop these values get saved in the ith row of M
Thanks!

1 件のコメント

madhan ravi
madhan ravi 2019 年 1 月 21 日
An example of your desired output would help.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2019 年 1 月 21 日

コメント済み:

2019 年 1 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by