Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Converting char operations into usable ones
조회 수: 1 (최근 30일)
이전 댓글 표시
How do i convert the string of '/' and '*' into usable operations for math so like 2/3 = .667 and so forth
댓글 수: 0
답변 (2개)
Star Strider
2016년 2월 26일
I really should not tell you because this is extremely poor programming practice.
You must absolutely promise never to use it in your code.
x = eval('2/3')
댓글 수: 0
Walter Roberson
2016년 2월 26일
/ is the function named rdivide (for this purpose) and * is the function named times (for this purpose)
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!