Home Forums GENERAL Matlab, Optisystem

Viewing 4 reply threads
  • Author
    Posts
    • #47640
      Dhanush Padman
      Participant

      Can anyone send me the matlab code for converting some string or some image to binary sequence which exactly fits into the MATLAB component of optisystem? Also provide me some materials or links to study the basic syntax or tutorial to interface matlab code with optisystem.. Please help me in this issue..

    • #47651

      Hi Dhanush,
      attached is a webinar explain how to link matlab to OptiSystem.

      for converting string to binary and back in matlab ; here is some commands that you can adapt and use.

      //////matlab code is below////
      s = ‘Mary had a little lamb’; % this is a string input. it might be your pic or any data
      binary = reshape(dec2bin(s, 8).’-‘0′,1,[]) % convert string to binary command
      str = char(bin2dec(reshape(char(binary+’0′), 8,[]).’)) % convert binary back to string to be used at the end of the program
      ////end of matlab code////////

      Hope that help you in your project
      thanks
      Mohamed Abouseif

    • #47712
      Dhanush Padman
      Participant

      Hi Mohamed,
      Thank you for the material. It helped me a lot

    • #47713

      perfect, I am happy to hear that.

      thanks
      Mohamed

    • #47746
      Dhanush Padman
      Participant

      Hi Mohamed,
      Sir, now I want to design a chaotic laser. How to do that sir? I have my base paper attached here. I have done upto mzm and i have to proceed with chaotic part. Please guide me in this one sir. Thanking you

Viewing 4 reply threads
  • You must be logged in to reply to this topic.