Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
how can i get output
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
input sample: x=[43 03 00 10]
output sample: y= 43030010
how can i get this output ???
0 comentarios
Respuestas (3)
Andrei Bobrov
el 16 de En. de 2013
if
x = [43 3 0 10]; % double array
y = x*10.^(6:-2:0);
0 comentarios
Azzi Abdelmalek
el 16 de En. de 2013
Editada: Azzi Abdelmalek
el 16 de En. de 2013
x= [43 3 0 10]
y=[]
for k=1:numel(x)
y=[y num2str(x(k))];
end
y=str2num(y);
%or
y=str2num(cell2mat(arrayfun(@num2str,x,'un',0)))
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!