필터 지우기
필터 지우기

How can I use the num2str command in the latex interpreter?

조회 수: 8 (최근 30일)
Moshood Kareem
Moshood Kareem 2016년 12월 30일
편집: Stephen23 2016년 12월 30일
Hi all,
I'm currently creating a function which plots a transfer function based on what values the user has given. In the title of the plot I added the transfer function as a fraction using the the latex interpreter command, however I'd like the coefficients that the user selected to be shown on my transfer function. I've tried using the num2str command in place of the coefficients however I'm getting errors all over the place.
Any help would be appreciated
users coeffients
d1 = 1
d2 = 10
d3 = 4
% Title
title('Untit step response of $G(s) = \displaystyle\frac{4}{d1s^2+d2s+d3}$','interpreter','latex')

채택된 답변

Moshood Kareem
Moshood Kareem 2016년 12월 30일
I managed to solve the problem myself, what I did was to add ',num2str(x),' to where I wanted my coefficients.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by