matlab - What is .' appended to end of list for use in bsxfun do? -


An example is given from matlab docs for BSXFun:

  have fun = @ ( A, B) A * sin (B); A = 1: 7; B = P * [0 1/4 1/3 1/2 2/3 3/4 1]. '; % What is it .' So am I? C = BSXFun (funny, A, B)   

I understand how BSX is used, but I do not understand. Does? I understand that 'to move, but what is it?'

Did you know that you can type things help / Or support. ? You will find help for all MATLAB operators and special characters.

To get help on Transfer , you should first know something about the MATLAB syntax.

  • To protect yourself
  • To transpose the vector:
  • This is a strange object in which apostrophs play the triple roll:
    • / matrix

      The second allows you to type a letter letter inside a string:

        & gt; & Gt; A = 'How it is done!';   

      This third role is due to historical reasons, and in my opinion it is rather unfortunate. Because, if you try

        & gt; & Gt; help .'   

      The MATLAB syntax rules dictate that it

        & gt; & Gt; Help ('.' ')   

      Which is an unexpected string Therefore, to get help on transposes, you have to "escape" Apostrophy:

        & gt; & Gt; Help please ''   

      What answer does you give: ... move - transjections. 'Ctranspose - Complex conjugate infection' ...

      So this is the difference:

        & gt; & Gt; A = [1 + 1i 2 + 2i 3 + 3E4 + 4i]; & Gt; & Gt; A 'ans = 1.0000 - 1.0000i 3.0000 - 3.0000i 2.0000 - 2.0000i 4.0000 - 4.0000i & gt; & Gt; a.' Ans = 1.0000 + 1.0000i 3.0000 + 3.0000i 2.0000 + 2.0000i 4.0000 + 4.0000i   

      Here are some fun things you can do:

        & gt; ; & Gt; A 'A.' Answer = 14 30 20 44   

      Of course, you could get help with assisted transmitted or help ctranspose Apostrophe-Notation is the only nickname for those long function names. When you are going to OOP and operator overloading, then the names of those long functions are also used:

        classdef MyAwesomeClass methods% // How to overload the Transceppe operator for your class Is: apply obj = transpose (obj)% // here end end end    

  • Comments

    Popular posts from this blog

    c - Mpirun hangs when mpi send and recieve is put in a loop -

    python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

    java - Unable to get JDBC connection in Spring application to MySQL -