Clear Filters
Clear Filters

Is there any way to see the code of pre-loaded programs ??

3 views (last 30 days)
During my practice i notice the few lines, related to "colormap" function.
load flujet
image(X)
colormap(jet)
How can i read and edit the 'flujet'.

Accepted Answer

Wayne King
Wayne King on 3 Oct 2012
flujet looks to me to just be a .mat file. It should just be data (an image) and is being loaded in the MATLAB workspace as the variable, X.
If you enter
>> whos X
you will see information about X, its dimension and data type.
  2 Comments
Anjireddy Thatiparthy
Anjireddy Thatiparthy on 3 Oct 2012
Dear Mr. Wayne king
Thanks for ur reply, But i'm looking for code which create this data .

Sign in to comment.

More Answers (2)

Matt J
Matt J on 3 Oct 2012
You can also do
whos -file flujet
to see what is stored inside the file flujet.mat
  2 Comments
Anjireddy Thatiparthy
Anjireddy Thatiparthy on 3 Oct 2012
Dear Mr. Matt J
Thanks for ur reply, But i'm looking for code which create this data .
Matt J
Matt J on 3 Oct 2012
Edited: Matt J on 3 Oct 2012
Then you should rephrase your Question. Initially, you said you wanted to read/edit flujet.mat. This is obviously unrelated to the code that created flujet.
Aside from that, I don't know how you hope that flujet will carry information about its creator. If I give you an mp3 music file, do you expect it to carry the software that created that mp3 file?

Sign in to comment.


Jan
Jan on 3 Oct 2012
The file "flujet.mat" does not contain information about its creator - usually. You can inspect the contents:
Data = load('flujet')
Now Data contains all variables. Perhaps, if you are lucky, the creating program added a variable like
Data.Creator = 'mips.m, version 1.8, written by Thomas.Moore@Belgium.com'
But this is not very likely.

Categories

Find more on Colormaps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!