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
Error-Checking user input in the While Loop: In many applications, whenever the user is prompted to enter anything, there is a valid range of values. When the user enters a wr

I want codding in matlab for vogel approximation method . i mean .M file for vogels approximation method.

I am doing project "Recognizing people in video based on their body" the system will use MATLAB to detect people based on thier body and then recognize them from their clothes "us

1.      Write a MATLAB program to generate and plot the signal                                     x1(n) = [3 2 -2 0 7],  n = 0,1,2,3,4. 2.      Write a MATLAB program to gen

Write a pseudo-code showing the list of steps to take for solving the given problem. In this process, you should identify the functions that are to be used in the program. Develop

Create MATLAB program(s) that solve a problem of your own choice. You may opt to solve work related problem, an industrial problem, or problem from your research project. Markin

i have a problem in doing my project which detects image forgery detection using resampling technique any one please help in writing my program

Input Function: The Input statements read in values from the default or standard input device. In most of the systems, the default input device is the keyboard; therefore the