Array manipulation in MATLAB

Поділитися
Вставка
  • Опубліковано 20 лют 2011
  • This screencast is all about arrays -- what they are, how to access and modify individual elements and "slices" of an array, how to add rows and columns to a matrix, and the RESHAPE and transpose functions.

КОМЕНТАРІ • 43

  • @dobraOsoba
    @dobraOsoba 12 років тому +3

    wow, what a perfect way of teaching matlab. Cutting to the essentials. Just seems so efortless. You are really smart for this. I used to hate matlab 20 minutes ago, but not anymore! Thank yoU!

  • @WickedChild95
    @WickedChild95 8 років тому

    I find your videos really helpful, thank you for posting them.

  • @rufatiwe
    @rufatiwe 12 років тому

    @daDfarSpanTaistheKin @9:03 it's minor omission, it's obvious that the matrix created by reshape is not made by switching the rows and columns and you can compare it to the transpose that is shown later.
    These videos are really the best I've seen so far, describing things fast, easy and straightforward.
    Many thanks to the author!

  • @loupis1
    @loupis1 10 років тому +15

    outstanding. I'm about to watch every matlab video you have.

  • @sediye
    @sediye 10 років тому +1

    this was very helpful, actually life saving. thanks

  • @MrMerlin87
    @MrMerlin87 11 років тому

    just what i needed. brilliant tutorial. thank you kind sir

  • @johnchristianbaguio4793
    @johnchristianbaguio4793 5 років тому

    I wanna say thank you before I end this video.

  • @AnupamSamanta1912
    @AnupamSamanta1912 11 років тому +1

    Thanks for the tutorial!

  • @dedalosikaros2161
    @dedalosikaros2161 11 років тому +1

    I am new to matlab,great work,thank you very much.

  • @kissmeimhuman
    @kissmeimhuman 11 років тому

    Great instruction. thanks!

  • @jauresart1598
    @jauresart1598 6 років тому

    great video, very helpful. Thank you :-)

  • @phil2082
    @phil2082 4 роки тому +4

    Thanks! This helped me get my homework done! I'm well on my way to becoming a mechanical engineer!

    • @dargue2021
      @dargue2021 Рік тому +1

      Hope you are doing well. I am now beginning.

    • @phil2082
      @phil2082 Рік тому

      @@dargue2021 Good luck! I am a manufacturing engineer now.

  • @user-dm2jj7mp3u
    @user-dm2jj7mp3u 7 років тому

    Thank you!! You are awesome

  • @teambreezycan9403
    @teambreezycan9403 5 років тому +2

    YAAAAAAWWWWWN

  • @Hemsom1rojder
    @Hemsom1rojder 7 років тому +2

    Hey Robert! First of all I just want to say that your screencasts have been extremely helpful to me. You´ve done a really good job.
    I have question about matrix indices:
    I have a problem where I want to ask matlab whether or not a specific index in a matrix exists or not, and if it exists I want to perform an operation for that given index. The basic idea can be described by the following "code":
    IF A(i,j) "EXISTS"
    perform some operation
    ELSE
    some thing else...
    END
    Is this possible to do in matlab? I know there are functions which check if a given element exists in a matrix, but I want to check if an index exists. I know matlab might have problems with this because it cant access an entry which doesn´t exist in a given matrix, therefore you get a syntax error warning.

  • @nonamexxx4912
    @nonamexxx4912 9 років тому

    How can we give a cumulative relative frequency plot of some array data??

  • @gelsondiaz198812
    @gelsondiaz198812 9 років тому +1

    Thanks a lot, you save my life.

  • @MJs-85
    @MJs-85 4 роки тому

    i was wondering if using these simple techniques i can assemble a global stiffness matrix using various element matrices while i am working on FEM

  • @noddyrulezzz
    @noddyrulezzz 12 років тому

    suppose there there is a matrix of 3x3, i want to read second and third row and place it along with first row...so is there any command which can put up 2nd and 3rd row with 1st one... for eg: there would be a 9 column after reading it...

  • @ccccchar
    @ccccchar 11 років тому

    what if i want to call a set of position (i, j) for which Aij > (a particular value) ? ie you want to display the positions that their value is smaller than a particular value say 5 ( Aij>5)

  • @na21482
    @na21482 7 років тому

    can you please help me with this problem "Creating a Game with Animation for Shooting a Ball" how can I generate the ball and the board in Matlab Thanks

  • @KarausMiller
    @KarausMiller 5 років тому

    Hello, I'm using matlab this semester in college, and it's asking me to call a DoubleDown function with 2 outputs. I'm confused. I enter the variables in and it only spits out one answer. can you offer some assistance with this ?

  • @nafeesakhan9497
    @nafeesakhan9497 7 років тому +1

    how to create table ... 2×1=2
    2×2=4 and so on ...?

  • @JGCouryo9
    @JGCouryo9 11 років тому

    How can you erase rows or columns?

  • @abhideepsingh4484
    @abhideepsingh4484 8 років тому

    Sir, Is it possible to find the location of a number in an array. Eg:
    say we have a matrice = [1,0,0;0,1,0;0,0,1]
    Now we want to find the location of "1's" in the above array.
    Answer should be = [1,1;2,2;3,3]
    If there is any such command, please let me know.

  • @chanoy11
    @chanoy11 9 років тому

    there a glitch in video thats confusing me, i do appreciate the help though. definitely gonna help me ace my computer programming mid term

  • @ramlakshman140
    @ramlakshman140 4 роки тому

    To compare the array values with single variable how

  • @ccccchar
    @ccccchar 11 років тому

    you have to input [] ex A=(:,3)=[] to erase column 3 and same goes to rows but swap A=(3,:)=[]

  • @fffppp8762
    @fffppp8762 5 років тому

    how to append to array?

  • @t-boneshouse6466
    @t-boneshouse6466 10 років тому

    Create the functions:
    function A = RowScaling(A,i, c)
    function A = RowReplacement(A, i, j, s)
    so that for a matrix A, the function RowScaling realizes the row scaling of the ith row of A by the scalar c: Ri → sRi, and the function RowReplacement realizes the row replacement of the ith row of A by the sum of itself and the scalar multiplication of s and the jth row: Ri → Ri + sRj. Save the m-files under the names RowScaling.m and RowReplacement.m.
    can anyone answer this?

  • @troyboy168
    @troyboy168 11 років тому +1

    the video skips at about 2:30 and doesn't explain how to edit individual elements of a matrix or array

    • @yawarrizwan8336
      @yawarrizwan8336 6 років тому

      This can be done by following. Say you want to have value 22 in column number 8. Write w(8)=22, The original value of 3.5 will be replaced by the digit 22

  • @JPedroPSilva
    @JPedroPSilva 11 років тому

    Les Claypool?

  • @temesgenmekuriagelaw5658
    @temesgenmekuriagelaw5658 9 років тому

    Let A=[1 2 3; 4 5 6; 7 8 9 ] and A11 = [ 1 2; 4 5] , A12 = [ 2 3 ; 5 6] , A21 = [ 4 5 ; 7 8], A22 = [ 5 6; 8 9]. How can we express matrix A in terms of A11, A12, A21 and A22 ? not in terms of nodes.

    • @ahmed.adil84
      @ahmed.adil84 8 років тому

      i need the answer
      Let A=[1 2 3; 4 5 6; 7 8 9 ] and A11 = [ 1 2; 4 5] , A12 = [ 2 3 ; 5 6] ,
      A21 = [ 4 5 ; 7 8], A22 = [ 5 6; 8 9]. How can we express matrix A
      in terms of A11, A12, A21 and A22 ? not in terms of nodes.

    • @ahmed.adil84
      @ahmed.adil84 8 років тому

      m=[1 2 3];
      n=[2 5 3 4];
      s=[n;m]
      how can

  • @cristianespana4253
    @cristianespana4253 4 роки тому

    Como ingresar dato tipo String en Matlab ua-cam.com/video/2Jhqm2_TRO4/v-deo.html

  • @robiparvez
    @robiparvez 6 років тому

    no offense but u sound like the dad of spiderman in Amazing Spider Man 2 lol