How to use the same formula to find varies answer from different values?

조회 수: 1 (최근 30일)
Eg
First set of value s=20,t=3
Second set of value s=15, t=23
Formula => d=s*t
ans1=60 ans2=345 (answer i am expecting )

채택된 답변

vijayasinthujan vijayaratnam
vijayasinthujan vijayaratnam 2013년 3월 6일
clear all clc
speed=[2 3 1 3]; time =[1 2 2 1]; D=speed.*time

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by