MATLAB Answers

avantic
0

Student asking for help(simple stuff)

Asked by avantic
on 30 Jan 2013

How can I do following in matlab?

1)Draw the graph of the function y = tan (x) / x dotted red in the interval (-3.3) with a hundred points

2)Find the roots of polynomials y =-3x^3+4x^2-x+3

3)Solve the system of equations:

x-y+2z=1

x-2y-z=2

3x-y+5z=3

4) Find a graph of the function y= (xe^-x)/1-e^x,,,,,,,,,on intervale(-5.5) with step 00:01

 Any help with this would be highly appreciated, thanks in advance.

Regards.

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Shashank Prasanna
on 30 Jan 2013
Edited by Shashank Prasanna
on 30 Jan 2013
 Accepted answer

Sounds like an assignment. Please read the getting started guide. And use the doc heavily.

http://www.mathworks.com/help/matlab/getting-started-with-matlab.html?s_tid=doc_12b

1) Plot: http://www.mathworks.com/help/matlab/ref/plot.html

2) ROOTS: http://www.mathworks.com/help/matlab/ref/roots.html

3) Do you want to vizualize? what do you want to do when you say find a graphs? Use plot again just to observe.

Hint for 1:

x = linspace(-3,3,100);
plot(x,tan(x)./x,'r.');

  1 Comment

Thanks for your help. This is all I needed ( I know I should google better but w/e now :P ). Regards.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!