필터 지우기
필터 지우기

Matrix and fprintf command

조회 수: 1 (최근 30일)
Gimmy Morales
Gimmy Morales 2013년 9월 19일
Well, I have a 5x8 matrix; in the last part of my assignment I have to show A(5,2) and A(3,8) by using fprintf... How can I do that? (Sorry for my english)
  댓글 수: 1
Gimmy Morales
Gimmy Morales 2013년 9월 19일
to be more specific this is the Matrix (sorry, is a 6x8)
A= [2 5 6 8 5 6 2 5; 1 5 6 6 8 9 5 8; 8 5 6 4 2 9 5 -0.128; 2 5 7 1 5 2 8 4; 5 3/4 4 5 8 8 1 1; 0 5 1 2 1 1 0 9]
so it means A(5,2)= 3/4 A(3,8)= -0.128
But don't know how to show it wt fprinf

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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 9월 19일
fprintf('%g %g\n', A(5,2), A(3,8))
  댓글 수: 1
Jan
Jan 2013년 9월 19일
@Gimmy: Please read the Getting Started chapters of the documentation to learn such basics.

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

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by