I try this coding but it's say plot error..what wrong with my coding?

1 回表示 (過去 30 日間)
Muhammad Harriz Bin Zamri
Muhammad Harriz Bin Zamri 2022 年 5 月 16 日
回答済み: Dyuman Joshi 2022 年 5 月 16 日
clear; clc;
syms t; f=exp(t)*sin(3*t); diff (f) c=0.003; I=c*diff(f);
figure; plot(t,I); grid; xlabel('time'); ylabel('current'); title('current vs time');

採用された回答

Dyuman Joshi
Dyuman Joshi 2022 年 5 月 16 日
Use fplot to plot symbolic expressions
syms t
f=exp(t)*sin(3*t);
c=0.003; I=c*diff(f);
figure;
fplot(I);
grid;
xlabel('time'); ylabel('current'); title('current vs time');

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by