フィルターのクリア

simulation of electric arc furnace as a nonlinear three phase load

11 ビュー (過去 30 日間)
Abiodun Odumosu
Abiodun Odumosu 2023 年 11 月 6 日
コメント済み: Abiodun Odumosu 2023 年 11 月 7 日
function eaf_model()
% Simulation time
t = 0:0.0001:0.1; % Define your simulation time
% Grid input (constant voltage)
grid_voltage = 100; % Define your grid voltage
% Resistance and inductance
R = 0.1; % Resistance
L = 0.01; % Inductance
% Simulation
sim('eaf_simulation');
% Plotting results
figure;
subplot(2,1,1);
plot(eaf_simulation.Time, eaf_simulation.GridVoltage);
title('Grid Voltage');
xlabel('Time (s)');
ylabel('Voltage (V)');
subplot(2,1,2);
plot(eaf_simulation.Time, eaf_simulation.Current);
title('Current');
xlabel('Time (s)');
ylabel('Current (A)');
end
function eaf_model()
|
Error: Function definitions are not permitted in this context.

回答 (1 件)

Sakshi Sharma
Sakshi Sharma 2023 年 11 月 7 日
This error typically occurs when you write a function definition in command window. Write this function in a MATLAB file.

カテゴリ

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

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by