Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

simple question : mathematica defining variable

조회 수: 2 (최근 30일)
Michael  Kurniawan
Michael Kurniawan 2012년 10월 25일
PowerDensity[antenna_, loc_] := Module[antenna {a, b, c} loc {x, y},
PowerDensity = c/(4*Pi*((a - x)^2 + (b - y)^2)^(1/2))]
PowerDensity[{1000, 1000, 12}, {0, 0}]
Module::lvlist: Local variable specification {1000,1000,12} {a,b,c} {0,0} {x,y} is not a List. >>
Not sure why it isnt putting a=1000 b = 1000 c=12 and so on can someone please tell me how to fix this code.
PS. new to mathematica
  댓글 수: 2
Dr. Seis
Dr. Seis 2012년 10월 25일
PS. you might have better luck at a Mathematica site than a Matlab site
Matt Fig
Matt Fig 2012년 10월 25일
LOL. Look at the top of the page. MATLAB Central, not MATHEMATICA Central.... MATLAB is not the same as Mathematica.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by