Info

This question is closed. Reopen it to edit or answer.

every one , please can i help u how do you plot by cdf using many numbers and function f(x)= 1-exp(-xz) this plot represnt from table but ican't plot ?

1 view (last 30 days)
>>

Answers (1)

Image Analyst
Image Analyst on 14 Jun 2014
I hope this isn't your homework, because here is the code:
x = linspace(0, 0.16, 500);
z = 100;
fx= 1-exp(-x*z);
plot(x,fx, 'b-', 'LineWidth', 2);
hold on;
z = 250;
fx= 1-exp(-x*z);
plot(x,fx, 'r--', 'LineWidth', 2);
z = 1000;
fx= 1-exp(-x*z);
plot(x,fx, 'b--', 'LineWidth', 2);
grid on;
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
xlabel('X', 'FontSize', 20);
ylabel('fx', 'FontSize', 20);
It's not that hard - did you try anything first????
  3 Comments
Image Analyst
Image Analyst on 14 Jun 2014
What does that mean? I tried it and it did not fail. What did you do to my code to make it fail? Can you post any error messages or unexpected results? Do you want to post/attach your similar, failing code so we can fix it?
sara ismail
sara ismail on 14 Jun 2014
i mean i try similiar code but not this code . i tried it now and found result(the version of my matlab some error)but i found result .thank you alot again . you are welcome . :)

Tags

Community Treasure Hunt

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

Start Hunting!