Error Using ^ When Typing Power Command
이전 댓글 표시
I want to plot a graph of y versus t with:
>> t = linspace(0,10,20);
>> y = 1/(t*(3/10^(8*8)*10^(3/2))/2 + 1)^(2/3);
But when I finished writing the second line, the error appeared: Error using ^ One argument must be a square matrix and the other must be a scalar. Use POWER (.^) for elementwise power. So how can I solve this problem?
댓글 수: 1
Stephen23
2018년 1월 17일
Why not do EXACTLY what the error message advises you to do?
Read this to know the difference between ^ and .^:
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Mobile Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!