Example of linear indexing, MATLAB Programming

Example of Linear indexing:

For illustration, the following substitutes the whole second row with values from a vector The whole row or column could also be changed:

>> mat(2,:) = 5:7

mat =

2 11 4

5  6 7

Note that as the whole row is being modified, a vector with the correct length should be assigned.

 

 

Posted Date: 10/18/2012 4:27:05 AM | Location : United States







Related Discussions:- Example of linear indexing, Assignment Help, Ask Question on Example of linear indexing, Get Answer, Expert's Help, Example of linear indexing Discussions

Write discussion on Example of linear indexing
Your posts are moderated
Related Questions
how to write the national log (ln(x)) in matlap ?

(a) Find the spectrum of this waveform:  x = [ exp( -[0:1:49]/10), exp(-[50:-1:1]/10)]. Subplot only the magnitude by using the spectrum program from the class notes. (b) Using

ACTIVITIES OF A PROJECT 1-2 1-3 1-4 1-5 2-6 3-6 3-7 4-7 5-7 7-6 6-8 7-8 THE COMMPANY LOSES 2,000 FOR EVERY WEEK THE PROJECT LASTS BEYOND 30 WEEKS. fOR EACH OF THE PROPOSALS; ACTIVI

1;write a matlab of geuss elimination with scaling and pivoting under consideration?

i am doing my project on matlab and the topic of my project is invisible watermarking.How we can extract all pixel values of image in binary form.

need help in my accounts help

Write a script to determine the volume of a pyramid, which is 1/3 * base * height, where the base is length * width. On time the user to enter values for the length, width, and th

Discuss the frequency range / radiation angles at which the two models diverge, and relate this divergence to your understanding of the behaviour of a pistonic source. Compare t

Write a function that solves a system of linear equations or calculates the inverse of a matrix by Gauss-Jordan elimination. Your function should accept a matrix as an argument and

how do I make a second main function?