필터 지우기
필터 지우기

Output of Two Column

조회 수: 3 (최근 30일)
Ashlee Rogers
Ashlee Rogers 2020년 8월 29일
댓글: Ashlee Rogers 2020년 8월 29일
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
Ashlee Rogers
Ashlee Rogers 2020년 8월 29일
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. 😊

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2020년 8월 29일
Out = [A(:), B(:)]
I suggest you to do the MATLAB On-ramp course.
  댓글 수: 1
madhan ravi
madhan ravi 2020년 8월 29일
Out = array2table([A(:), B(:)], 'VariableNames', {'A', 'B'})

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by