A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

Using matlab can we draw a digital signal out of an array that contains numbers ? Is there a way to convert each number to binary "dec2bin" and then draw it ?

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    just to clarify, the array only contains decimal numbers I want to draw the binary numbers corresponding to each one of them to get a digital signal .

  2. carlsmith
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You want to convert integers from base10 to their binary representation and then plot them on a graph? Both are pretty simple tasks, but I'm thinking that the binary representations would have the same position on the graph as they would if they were in base10 or hex or any other base. Wouldn't it just be the same graph, produced from the same data? Perhaps I'm not getting it.

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Well I'm actually stuck in the ploting process I have a decimal number "in fact array of decimal numbers" and when I convert it into binary "dec2bin" all I have is a string , so what is the way to draw a string of zeros and ones taking in consideration that the plot of each string must appear once the one before it ends. Thanks a lot for the reply. I appreciate it .

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Well I'm actually stuck in the ploting process I have a decimal number "in fact array of decimal numbers" and when I convert it into binary "dec2bin" all I have is a string , so what is the way to draw a string of zeros and ones taking in consideration that the plot of each string must appear once the one before it ends. Thanks a lot for the reply. I appreciate it .

  5. carlsmith
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You understand that a string of ones and zeros is a number. 0 = 0 1 = 1 10 = 2 11 = 3 100 = 4 101 = 5 So if you take any string of binary, you can plot it on a graph as you normally would plot base10 numbers. 111 110 101 x 100 011 x 010 x 001 000 0 1 2 3 4 5 6 7 8 9 I'm not sure I understand what you're asking for. I am sorry, I'm genuinely interested. Let me know if I'm not getting something and I'll try and help.

  6. carlsmith
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Are you saying that when you convert a bunch of decs to binary, you just get one big binary string and you need each of the decs as an individual binary string? You'd need to set up some kind of loop that'll do each dec one by one?? I'm a bit lost to be honest.

  7. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.