Hi I have a function 2x+3y+6z=12 and I would like to plot it and to colorize the created figure. How can I do? using surf? meshgrid? plot,

댓글 수: 1

John D'Errico
John D'Errico 2018년 3월 23일
What have you tried? If nothing, then why not?
Can you solve for z, as a function of x and y?
Did you read the help and examples for tools like meshgrid? Why not?
How about surf? Did you read the help for that?
You know what tools you need to use. So make an effort. You won't learn a thing until you start reading the documentation for tools that you know you need to use.

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

 채택된 답변

Image Analyst
Image Analyst 2018년 3월 23일

0 개 추천

Hint:
[x, y] = meshgrid(.....
% Then solve for z in terms of x and y.
% Then call surf(x,y,z)
It's literally 3 lines of code. You can do it.

댓글 수: 1

Florian Pion
Florian Pion 2018년 3월 23일
Thank you, I got it. Sorry for thos stupid question, I am a novice.

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

추가 답변 (0개)

카테고리

태그

질문:

2018년 3월 22일

댓글:

2018년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by