Borrar filtros
Borrar filtros

Output of Two Column

3 visualizaciones (últimos 30 días)
Ashlee Rogers
Ashlee Rogers el 29 de Ag. de 2020
Comentada: Ashlee Rogers el 29 de Ag. de 2020
I have two column vectors and I want an output in two columns. I have no idea how to do this. I am brand new to MATLAB. this is what I have: A=[1.00:0.10:25.00]' B=0.1*A
I am assuming from my research that I should be using fprintf, but I don't know how to set that up. Help!
  1 comentario
Ashlee Rogers
Ashlee Rogers el 29 de Ag. de 2020
Thank you so much! I will definitely check out the course! I am in a basic computer science class, and I am just learning the basics to MATLAB now. I'm sure with more practice, I will get better at it. 😊

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 29 de Ag. de 2020
Out = [A(:), B(:)]
I suggest you to do the MATLAB On-ramp course.
  1 comentario
madhan ravi
madhan ravi el 29 de Ag. de 2020
Out = array2table([A(:), B(:)], 'VariableNames', {'A', 'B'})

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by