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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by