how to divide matrices that print matrix

조회 수: 2 (최근 30일)
Geon Jung
Geon Jung 2019년 9월 12일
댓글: per isakson 2019년 9월 12일
clc;clear;
v2=[0,45,85,100];
t=[0,1.5,3,5];
a =v2/t ;
disp(a);
I thought "a" would print out in matrix form which it did not.
I need the answer in [a,b,c,d] form.

채택된 답변

Image Analyst
Image Analyst 2019년 9월 12일
Try
a = v2 ./ t % Use dot-slash ./ instead of /
No disp(a) needed if you leave off the semicolon.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by