Matrix formed of a string vector and a double vector
Show older comments
hej got some trouble setting up my matrix, which should look like this:
M =
Drehzahl 432.5665433
Speed 455.3345;
Kartoffel 655.655444
but instead, it looks like this:
M =
Drehzahl ư
Speed LJ
Kartoffel ʏ
how come?
clc
clear all
namen = ['Drehzahl ';
'Speed ';
'Kartoffel '];
no = [432.5665433;
455.3345;
655.655444];
no1 = [432.5665433;
455.3345;
655.655444];
M = [namen, no]
N = [no1, no]
pointer = fopen('rohdatenfile', 'w');
fprintf(pointer,'%s %4.2f\n',M);
fclose(pointer);
type rohdatenfile
Accepted Answer
More Answers (1)
Luki
on 13 Apr 2014
0 votes
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!