matlab- syntax question

Posted on 2006-04-26
Last Modified: 2016-02-10
   I saw a following matlab code. there is a "." (dot) after "w1". what is the meaning of that dot? I try to remove it, and I don't see any different in the result.

plot (x_sin)
Question by:hsuyf
    LVL 11

    Accepted Solution

    In matlab,* is matrix multiplication.


    a=[1 2 3]; % row vector
    b = [1;2;3]; % column vector

    b*a =
      1  *  *
      *  4  *
      *  *  9

    I'm not going to write it out, but you get the picture.

    If you just want to multiply the first element of a times b, the second, etc. then use .*

    b.*a = [1 4 9]

    Author Comment

    thank you very much!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Complex Numbers are funny things.  Many people have a basic understanding of them, some a more advanced.  The confusion usually arises when that pesky i (or j for Electrical Engineers) appears and understanding the meaning of a square root of a nega…
    Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now