extracting two specific columns from matrix (Indexing)

조회 수: 1 (최근 30일)
Mark Sc
Mark Sc 2021년 2월 18일
답변: Matt J 2021년 2월 18일
Hi all,
I am trying to extract two columns (1 and 3) from a matrix, but I got an error "Error: Unbalanced or unexpected parenthesis or bracket"
anyone help!!!
clearvars
clc;
xxx=[1 2 3;2 4 5;3 4 5;1 1 1];
x=[(;,1) (:,3)]

채택된 답변

Matt J
Matt J 2021년 2월 18일

추가 답변 (0개)

카테고리

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