フィルターのクリア

How do I fix this error? If I put x/number it works.

1 回表示 (過去 30 日間)
Elizabeth Browne
Elizabeth Browne 2018 年 9 月 26 日
コメント済み: Elizabeth Browne 2018 年 9 月 27 日
clear all
close all
clc
figure
X = 200:250:2500;
Y = 1.82*10^14*exp(-38370/X);
plot(X,Y)
Error in Plot_MECH558_HW3Q2 (line 7)
Y = 1.82*10^14*exp(-38370/X);

採用された回答

Bish Erbas
Bish Erbas 2018 年 9 月 26 日
figure; X = 200:250:2500; Y = 1.82*10^14*exp(-38370./X); plot(X,Y)
When you want to multiply or divide every element of a vector, you will need to use . before the / or * operator. Above line works for me.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by