フィルターのクリア

I can calculate two error individually. but i can't calculate two error simultaneously. I found two result individually which is given in below. but i want to merge both error and need a single answer for following code, but i can't. Please help me

1 回表示 (過去 30 日間)
Mehedi
Mehedi 2014 年 6 月 11 日
編集済み: Mischa Kim 2014 年 6 月 11 日
clc clear idealx=10; appx=9; error1=((abs(idealx-appx))/idealx)*100 idealy=30; appy=31; error2=((abs(idealy-appy))/idealy)*100

回答 (1 件)

Mischa Kim
Mischa Kim 2014 年 6 月 11 日
編集済み: Mischa Kim 2014 年 6 月 11 日
Mehedi, how about
ideal = [idealx; idealy];
app = [appx; appy];
error = ((abs(ideal-app))./ideal)*100
Simply put the variables into corresponding vectors.

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by