Undefined function or variable 't'.

  1. Hi I want to displacement time graph. But I couldn't define the t function. How can I solve the problem by putting the clock symbol on the simulink diagram
clear all
clc
m = 1;
k1 = 10;
k2 = 15;
k = k1 + k2;
b1 = 20;
b2 = 25;
b = b1 + b2;
dtc = 0.1;
sim('sm')
figure(1);
plot(t,x);
title('Displacement,m');
grid
xlabel('t,s');
ylabel('x,m');

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 4월 20일

0 개 추천

What is your "x"? Is it logged through "Data Import/Export"? Press Ctrl+E to open the configuration parameter, click "Data Import/Export", check "Time" and specify it as "t".

카테고리

도움말 센터File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2020년 4월 18일

답변:

2020년 4월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by