Results 1 to 6 of 6

Thread: Matlab

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hip-Hop Addict gabrovec's Avatar
    Join Date: Nov:2007
    Location:
    Posts: 1,008

    Matlab

    , , , ( , 3 )

    " H(5,5). - 0 , . "

    :

    Code:
    for i=1:1:5
    for j=1:1:5
    H(i,j)=input(['H(',num2str(i),',',num2str(j),')=']);
    end
    end
    disp('H=');
    disp(H)
    if H(H(1,:)>0 
    disp(v1=H(i,:))

    "diag V" :/

    ,
    Last edited by gabrovec; 20th October 2013 at 22:37.

  2. #2
    Registered User badboybadboy's Avatar
    Join Date: Mar:2008
    Location: sofia
    Posts: 10,496
    $$$ .

  3. #3
    Hip-Hop Addict gabrovec's Avatar
    Join Date: Nov:2007
    Location:
    Posts: 1,008
    ..

  4. #4
    stalinator 2047 bat_zerga's Avatar
    Join Date: Oct:2003
    Location: /
    Posts: 4,214
    elementi=5;
    H=rand(elementi);
    % / , ; , , elementi=length(H)

    for i=1:elementi
    if H(i,1)>0
    v(i)=1;
    else
    v(i)=0;
    end
    end

    if sum(v)==elementi
    izvlechenie=H(:,1);
    else
    izvlechenie=sum(diag(H));
    end
    disp(izvlechenie);


    , . , , , , . . ......... , . '' , , , .
    - , !
    - , .
    , ., .

  5. #5
    Hip-Hop Addict gabrovec's Avatar
    Join Date: Nov:2007
    Location:
    Posts: 1,008
    ? , , ..

    , , , , ...

    .. H(5,5) , , , 5 , 5 , elementi=length(H) 5 5 ?

  6. #6
    Registered User
    Join Date: Oct:2003
    Posts: 1,860
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |