how to access the matrix in matlab current folder

I am having 6x6 matrix, I want to use this in my path,want to access row by row when ever I want matrix in my another programme is it possible

Answers (1)

For example
a=[1 2 3;4 5 6;7 8 9]
To acces any row
n=2 % second row
r=a(n,:)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 12 Jan 2015

Edited:

on 12 Jan 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!