Matlab Help (1 Viewer)

Jul 19, 2003
3,286
#1
Anyone here familiar with MATLAB??

If so, I'm trying to learn it and I'm having a bit of trouble. Tell me whether anything is wrong with the following function:

function h=sindeg(x)
h=sin(pi/180*x);
And then to execute and calculate the sine of 30 degrees, I type in the command menu the following:

sindeg(30)

I'm getting the following error everytime I try to execute:

??? Undefined function or variable 'sindeg'.
What am I doing wrong?
 

Buy on AliExpress.com
OP
nosubstitute959
Jul 19, 2003
3,286
  • Thread Starter
  • Thread Starter #7
    Guys........I need some URGENT help!!

    I need to find a way to write out a matrix on any text editor and copy it to Microsoft Word......or if there's a way to write it out directly on Word, that'll do.

    I also need special characters like the "delta" for partial differentiation.


    I would appreciate any help I can get. :)
     

    gray

    Senior Member
    Moderator
    Apr 22, 2003
    30,260
    #10
    doesn't word's paragraph function make it easy?

    Or are you having trouble with the line? Just use the line tool
     

    gray

    Senior Member
    Moderator
    Apr 22, 2003
    30,260
    #12
    ahhhh

    Is this the right bracket? I think it's wrong, i haven't done matrices in ages

    If it's wrong, just use the one next to it ;)
     
    OP
    nosubstitute959
    Jul 19, 2003
    3,286
  • Thread Starter
  • Thread Starter #14
    Cool.........thanks. It might do. Someone told me to install Microsoft Equation from my Office CD........so I'll try that. If not, I'll use those.......they're not that different.

    Thanks for ur effort man.....much appreciated. :)
     

    gray

    Senior Member
    Moderator
    Apr 22, 2003
    30,260
    #15
    np ;)

    @Martin: yeah yeah, shaddup, at least i thought they were wrong :) Bah, it's been too long :sleepy:
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)