Loop over non-numeric stuff

1 回表示 (過去 30 日間)
Cantor Set
Cantor Set 2019 年 1 月 21 日
コメント済み: madhan ravi 2019 年 1 月 21 日
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 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by