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.
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!
I find your videos really helpful, thank you for posting them.
@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!
outstanding. I'm about to watch every matlab video you have.
this was very helpful, actually life saving. thanks
just what i needed. brilliant tutorial. thank you kind sir
I wanna say thank you before I end this video.
Thanks for the tutorial!
I am new to matlab,great work,thank you very much.
Great instruction. thanks!
great video, very helpful. Thank you :-)
Thanks! This helped me get my homework done! I'm well on my way to becoming a mechanical engineer!
Hope you are doing well. I am now beginning.
@@dargue2021 Good luck! I am a manufacturing engineer now.
Thank you!! You are awesome
YAAAAAAWWWWWN
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.
How can we give a cumulative relative frequency plot of some array data??
Thanks a lot, you save my life.
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
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...
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)
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
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 ?
how to create table ... 2×1=2
2×2=4 and so on ...?
How can you erase rows or columns?
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.
there a glitch in video thats confusing me, i do appreciate the help though. definitely gonna help me ace my computer programming mid term
To compare the array values with single variable how
you have to input [] ex A=(:,3)=[] to erase column 3 and same goes to rows but swap A=(3,:)=[]
how to append to array?
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?
the video skips at about 2:30 and doesn't explain how to edit individual elements of a matrix or array
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
Les Claypool?
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.
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.
m=[1 2 3];
n=[2 5 3 4];
s=[n;m]
how can
Como ingresar dato tipo String en Matlab ua-cam.com/video/2Jhqm2_TRO4/v-deo.html
no offense but u sound like the dad of spiderman in Amazing Spider Man 2 lol