Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

How to get values on Matlab GUI about Probability functions(expected value, PDF, CDF, variance, moments?)

Asked by Runo Insan

Runo Insan (view profile)

on 26 May 2013

Dear Matlab Central

I am working on Matlab for my homework. Can you help me?

  1. Defining a polinominal function depends on x variable.
  2. Xmin and Xmax point should be defined for function to limit the values.
  3. probably density function PDF
  4. cumulative density function CDF
  5. expected value
  6. variance
  7. moments
  8. Building GUI to calculate these.

Would you kindly write codes, please? I am really new on Matlab even in GUI.

Very special thanks to you!

1 Comment

Image Analyst

Image Analyst (view profile)

on 26 May 2013

Then, what would be left for you to do? Just turn in our code as your own homework? See this: http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers

Runo Insan

Runo Insan (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Image Analyst

Image Analyst (view profile)

on 26 May 2013

Did you look in the help for those terms? If so, you'd find functions for them, like min(), max(), hist(), var(), cumsum(), etc.

Here's a GUI to get you started MAGIC

Description 	
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a ..............

1 Comment

Image Analyst

Image Analyst (view profile)

on 26 May 2013

Regarding your "Answer" (which really should have been a comment here rather than a new, additional answer)...

Well then go ahead and code them up just like you'd do in C. MATLAB is fairly similar to C so it shouldn't be too hard.

Image Analyst

Image Analyst (view profile)

Answer by Runo Insan

Runo Insan (view profile)

on 26 May 2013

Thank you for your answer but I have not to use functions. I need to define everything like coding as similar as C/C++. I know "Help" seem ocean contains lots of things to do. But unfortunately I shouldn't do.

Thank you. What else help?

0 Comments

Runo Insan

Runo Insan (view profile)

Contact us