Recent content by wuid

  1. W

    How to Create MATLAB Code for Geometrical Optics Image Transformation?

    thought to do it in more "analytic" way... i accomplished the assignment as you suggested, but in this way there is no "lens" in the code only the outcomes. clear %Input object distance do do=15; %Input focal length of lens f f=-lO; % Input distance behind lens z z=30; %Input...
  2. W

    How to Create MATLAB Code for Geometrical Optics Image Transformation?

    ok, sorry, you understood very well the problem, but the implementation is not so obvious (for me i guess...). as an input i have: 1)1000X1000 image. 2)distance of the image from the lens 3)focal length now i can calculate as you said the distance of the image after the lens & the...
  3. W

    How to Create MATLAB Code for Geometrical Optics Image Transformation?

    we know all about the lens system: f,distance of from the object,distance of the image. i'm pretty lack of knowledge how to implement it with matlab. need for some sort of algorithm of how to do it.
  4. W

    How to Create MATLAB Code for Geometrical Optics Image Transformation?

    Hello all, i have frustrating task in my lab... i have to generate a code in MATLAB that will get the focal length and the object distance from the lens, i.e image (1000X1000 pixels). transfer it through the lens and, for the output it should be the result of it...
  5. W

    Proof of ratio distribution normal and uniform

    WOW fantastic , thank's i will check it more carefully to understand it.
  6. W

    Proof of ratio distribution normal and uniform

    %Assigement with restricted values (1) x=normrnd(0,1,1,150e4); %generate standard normal numbers y=1+(1-0.5).*rand(1,150e4); %generate uniform numbers in interval [0,1] z=x./y; %desired new variable hist(z); %Tryings to verify that the experssion meet with (1)in %means of histogram...
  7. W

    Proof of ratio distribution normal and uniform

    Where X ranges from let's say -1000:0.01:1000 ?
  8. W

    Proof of ratio distribution normal and uniform

    Hi , so for simulating the ratio between the normal and uniform - getting the histogram for z=x./y (with restricted values - which is good idea) now I'm getting the bell shape as i expected. now i want to test the formula i derived with your (anyone who helped me) help. it's the formula with...
  9. W

    Proof of ratio distribution normal and uniform

    uart , you have anything on the second method ?
  10. W

    Proof of ratio distribution normal and uniform

    chiro, still don't understand what is "R" ? this is some kind of program ?
  11. W

    Proof of ratio distribution normal and uniform

    o.k! yes i know i did some silly mistakes was doing this h.w in work... what do you think on the first page , the method of changing variables ?
  12. W

    Proof of ratio distribution normal and uniform

    what you mean get something like R ? by simulating what you suggest (using Matlab) 1. generating number for X using x=randn(10^6,1); 2. generating number for Y using y=rand(10^6,1); 3. dividing X by Y 4. what should i do next , where to save the the results ?
  13. W

    Proof of ratio distribution normal and uniform

    think i managed to do it, in two ways , could you confirm please
  14. W

    Proof of ratio distribution normal and uniform

    didn't quiet understood what Dickfore did , so tried changing variables in the attached file seems to me pretty close but something is missing(besides the boundaries of the p.d.f) or i didn't calculate right ,
Back
Top