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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by