Undefined operator '^' for input arguments of type 'cell'.

조회 수: 1 (최근 30일)
irfan
irfan 2016년 7월 19일
편집: Walter Roberson 2016년 7월 19일
c0=1;
c1=2;
c3=4;
A={((c0/2)-(c1*c2/6)+(c2^3/27))-[(c0/2)-(c1*c2/6)+((c2^3/27)^2)+(c1/3-c2^2)^3]^1/2}^1/3;
i am getting the above error
  댓글 수: 1
Adam
Adam 2016년 7월 19일
Why are you using a cell array to do simple maths in?

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 19일
편집: Azzi Abdelmalek 2016년 7월 19일
c0=1;
c1=2;
c2=5
c3=4;
A=(((c0/2)-(c1*c2/6)+(c2^3/27))-[(c0/2)-(c1*c2/6)+((c2^3/27)^2)+(c1/3-c2^2)^3]^1/2)^1/3;
You can't write
a= {2+3}^3
write
a=(2+3)^3

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by