How to write this iteration code?

조회 수: 4 (최근 30일)
Neilton Felipe Santos
Neilton Felipe Santos 2020년 10월 31일
답변: KSSV 2020년 10월 31일
Hi, I'm new using Matlab. I have to programming a code for this interation using data from many .csv archives. I have no idea how to do that :/
the .csv data is in this format: TIME, R, Xl
, Time: 0,03125, R: -0.012374, Xl: -0.027607

답변 (1개)

KSSV
KSSV 2020년 10월 31일
Read about pdist2. You can use this to get whay you want.
P = rand(4,2) ; % random data for demo
iwant = pdist2(P) % the lower/ upper diagonal elements is what you wanted

카테고리

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