I want to turn f(x,y,z) = x^2 + 3y ^2 + 4z^2 – 2xy + 5x – 3y + 2z into an anonymous function

 채택된 답변

James Tursa
James Tursa 2015년 6월 3일

1 개 추천

Do you mean like this?
f = @(x,y,z) x.^2 + 3*y.^2 + 4*z.^2 - 2*x.*y + 5*x - 3*y + 2*z

댓글 수: 1

Jennifer Wail
Jennifer Wail 2015년 6월 3일
Thank you, I was doing that but something else wasn't working. I'll post another question on it.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2015년 6월 3일

댓글:

2015년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by