how to divide a column vector by a scalar?

조회 수: 84 (최근 30일)
Brian Dowling
Brian Dowling 2019년 3월 15일
답변: KSSV 2019년 3월 15일
I have a column vector (54x1) and i need to divide all of them by the same scalar. I have tried the right array divider ./ but its not working for me. Any help appreciated

채택된 답변

KSSV
KSSV 2019년 3월 15일
A = rand(54,1) ;
scalar = rand ;
iwant = A/scalar ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by