MATLAB ipv FORTRAN

Home Forums Stammtisch MATLAB ipv FORTRAN

This topic contains 3 replies, has 2 voices, and was last updated by  Pieter 20 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14404

    b’vo
    Participant

    ??? diag(1 2 3 4)
    |
    Error: “)” expected, “numeric value” found.

    >> diag(1: 2: 3: 4)
    Warning: Colon operands must be real scalars.
    (Type “warning off MATLAB:colon:operandsNotRealScalar” to suppress this warning.)
    ans =
    1 0 0 0
    0 2 0 0
    0 0 3 0
    0 0 0 4
    >> T=%5B3 4;1 8;-4 3%5D; A%5Bdaig(-1;2:30 T; -4 4 2 1%5D
    ??? T=%5B3 4;1 8;-4 3%5D; A%5Bdaig(-1;2:30 T; -4 4 2 1%5D
    |
    Error: Missing operator, comma, or semicolon.

    >> T=%5B3 4;1 8;-4 3%5D; A%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    ??? T=%5B3 4;1 8;-4 3%5D; A%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    |
    Error: Missing operator, comma, or semicolon.

    >> T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    ??? T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    |
    Error: “)” expected, “;” found.

    >> T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1:2:30 T; -4 4 2 1%5D
    ??? T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1:2:30 T; -4 4 2 1%5D
    |
    Error: “)” expected, “identifier” found.

    >> T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1:2:3) T; -4 4 2 1%5D
    ??? Error using ==> vertcat
    All rows in the bracketed expression must have the same
    number of columns.

    #18901

    Pieter
    Participant

    En jij dacht dat ik dit wel snap?

    > ??? diag(1 2 3 4)
    > |
    > Error: “)” expected, “numeric value” found.
    >
    > >> diag(1: 2: 3: 4)
    > Warning: Colon operands must be real scalars.
    > (Type “warning off MATLAB:colon:operandsNotRealScalar” to suppress this warning.)
    > ans =
    > 1 0 0 0
    > 0 2 0 0
    > 0 0 3 0
    > 0 0 0 4
    > >> T=%5B3 4;1 8;-4 3%5D; A%5Bdaig(-1;2:30 T; -4 4 2 1%5D
    > ??? T=%5B3 4;1 8;-4 3%5D; A%5Bdaig(-1;2:30 T; -4 4 2 1%5D
    > |
    > Error: Missing operator, comma, or semicolon.
    >
    > >> T=%5B3 4;1 8;-4 3%5D; A%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    > ??? T=%5B3 4;1 8;-4 3%5D; A%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    > |
    > Error: Missing operator, comma, or semicolon.
    >
    > >> T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    > ??? T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1;2:30 T; -4 4 2 1%5D
    > |
    > Error: “)” expected, “;” found.
    >
    > >> T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1:2:30 T; -4 4 2 1%5D
    > ??? T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1:2:30 T; -4 4 2 1%5D
    > |
    > Error: “)” expected, “identifier” found.
    >
    > >> T=%5B3 4;1 8;-4 3%5D; A=%5Bdiag(-1:2:3) T; -4 4 2 1%5D
    > ??? Error using ==> vertcat
    > All rows in the bracketed expression must have the same
    > number of columns.

    #18902

    b’vo
    Participant

    …nee, je bent toch geoloog?

    #18903

    Pieter
    Participant

    Niet voor lang meer

    > …nee, je bent toch geoloog?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.