How is it possible to make a matrix which includes
numbers/data and text?
Example:
I want X={'Moment'; 'Work'; 'Angle'} to be in column1,
Y=[222.115; 210.004; 78.112] to be in column2 and Z=
[211.114; 205.089; 76.112] to be in column3, so V=[X Y Z].
V=
Moment 222.115 211.114
Work 210.004 205.089
Angle 78.112 76.112
I want it to be possible calculate within the two data
vectors..
In other words I want it to be possible to save the matrix
to a file which have a header (ex. Moment, Work, Angle) to
each row of the Matrix or file.
In article <g0kdgq$48$1@fred.mathworks.com>,
Markus Due Jakobsen <markusdue@gmail.com> wrote:
>Hi
>
>How is it possible to make a matrix which includes
>numbers/data and text?
>
>Example:
>I want X={'Moment'; 'Work'; 'Angle'} to be in column1,
>Y=[222.115; 210.004; 78.112] to be in column2 and Z=
>[211.114; 205.089; 76.112] to be in column3, so V=[X Y Z].
That is not possible in Matlab.
>In other words I want it to be possible to save the matrix
>to a file which have a header (ex. Moment, Work, Angle) to
>each row of the Matrix or file.
That's a different question: there are a number of different
routines that allow you to write data to a file, several of which
allow you to write out data of different classes on the same line.
--
"The quirks and arbitrariness we observe force us to the
conclusion that ours is not the only universe." -- Walter Kistler
"Markus Due Jakobsen" <markusdue@gmail.com> wrote in
message <g0kdgq$48$1@fred.mathworks.com>...
> Hi
>
> How is it possible to make a matrix which includes
> numbers/data and text?
>
> Example:
> I want X={'Moment'; 'Work'; 'Angle'} to be in column1,
> Y=[222.115; 210.004; 78.112] to be in column2 and Z=
> [211.114; 205.089; 76.112] to be in column3, so V=[X Y
Z].
>
> V=
> Moment 222.115 211.114
> Work 210.004 205.089
> Angle 78.112 76.112
>
> I want it to be possible calculate within the two data
> vectors..
>
> In other words I want it to be possible to save the
matrix
> to a file which have a header (ex. Moment, Work, Angle)
to
> each row of the Matrix or file.
>
> Any suggestions?
>
> Markus
>
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Disclaimer prior to use.