First time using MATLAB,and I need help.

조회 수: 6 (최근 30일)
James Rambo
James Rambo 2016년 8월 8일
답변: Image Analyst 2016년 8월 9일
Hi there.The lecturer told us to do a math assignment using Matlab,but unfortunately I haze zero knowledge about coding/script.
I tried following youtube tutorial but it seems like my coding doesn't seem to work....
Here's my question ( its number 3)
What code do I have to use? Can you give me an example please :)
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2016년 8월 8일
It seems to be a homework. What have you done so far?
James Rambo
James Rambo 2016년 8월 9일
I've done all the question.It's just that I have no idea how to type this using Matlab.

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

답변 (3개)

Sean de Wolski
Sean de Wolski 2016년 8월 8일
You can create an anonymous function like this (e.g. f = x.^2):
f = @(x)x.^2
And evaluate it at a specific point (e.g. 3) with:
f(3)
See this for more information. One of the best things about MATLAB is the documentation, I encourage you to look there first.

Star Strider
Star Strider 2016년 8월 9일

Image Analyst
Image Analyst 2016년 8월 9일

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by