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 do you make a program for a parachute man falling to determine his terminal velocity, having in consideration the drag force (cv^2). I have the formula to be v(i+1)=v(i)*delta(

how to write a program to determine the day of the week. using GUI.

i made graph using adjacent matrix i have to find the critical path on that graph in matlab work can you please give me that code.

Hello sir, I am Bharat Prajapati.I am working on Copy-move forgery detection using 2D-DWT transform.How to code in matlab to detect copy-move forgery in the given image.Please help

i want to save the values of a particular equation in a for loop.. for ex: for i=1:100 et=(x+yz); end thus how can i store the values of et at each iteration

I need this task to be done with discription of matlab coding.

Introduction to Matlab: The MATLAB is a graphical and mathematical software package; it has graphical, numerical and programming capabilities. It has built-in functions to do

Format command: The format command can be used to control the spacing between the MATLAB command or expression and the outcome; it can be either compact or loose. >> format

i want to write a program in mat lab for optimizing the design of lens help me how could i i am new user of matlab but previously i have work on C++.