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
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