pppbigppp
Electrical
- May 17, 2006
- 1
Hi,
I'm curious if there is a way to save(export) a figure as a jpg file using only the commandline. In other word, I want to embedded the graph production in a m-script so that I don't have to click through several menus.
Also, I'm wondering if there is a way to access an array element of an output directly. Let say I have type
size(matrix)
and the return value is [1 2 3]. Is there a direct way to access the first element(1)? Currently, I have to assign the output to a, then call a(1). Would be nice to eliminate this temp variable.
Thanks!
I'm curious if there is a way to save(export) a figure as a jpg file using only the commandline. In other word, I want to embedded the graph production in a m-script so that I don't have to click through several menus.
Also, I'm wondering if there is a way to access an array element of an output directly. Let say I have type
size(matrix)
and the return value is [1 2 3]. Is there a direct way to access the first element(1)? Currently, I have to assign the output to a, then call a(1). Would be nice to eliminate this temp variable.
Thanks!