Shorten the length of an arrow in tikz
I am trying to draw a picture representing a control theory graph.
I am pretty much there, but there are two problems:
I need to have a dot above the x(t) in the first equation in the big box. When I put it in maths mode, it draws four lines instead of two, or, depending on how I split the maths mode, it puts it all on one line. Any ideas on how to get that damned dot above the x without changing the layout of the box?
The RHS arrow with the y(.) above it is too long. I would like to get it back down to a length close to the LHS arrow with the v(.), it would just look nicer!
Here is my code :
documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right of=input] (sum) B;
node [block, right of=sum] (controller) beginarray dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray;
!node [sum, right of=controller, node distance=3.651cm] (mat) C;
node [sum, below of=controller] (K) K;
node [output, right of=controller] (output) C;
node [input, name=end, right of=output, node distance=5cm] ;
coordinate [below of=sum] (measurements) ;
coordinate [right of=output](fin) ;
coordinate[left of =output, xshift=2.7cm] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (output) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

tikz-pgf tikz-arrows
add a comment |
I am trying to draw a picture representing a control theory graph.
I am pretty much there, but there are two problems:
I need to have a dot above the x(t) in the first equation in the big box. When I put it in maths mode, it draws four lines instead of two, or, depending on how I split the maths mode, it puts it all on one line. Any ideas on how to get that damned dot above the x without changing the layout of the box?
The RHS arrow with the y(.) above it is too long. I would like to get it back down to a length close to the LHS arrow with the v(.), it would just look nicer!
Here is my code :
documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right of=input] (sum) B;
node [block, right of=sum] (controller) beginarray dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray;
!node [sum, right of=controller, node distance=3.651cm] (mat) C;
node [sum, below of=controller] (K) K;
node [output, right of=controller] (output) C;
node [input, name=end, right of=output, node distance=5cm] ;
coordinate [below of=sum] (measurements) ;
coordinate [right of=output](fin) ;
coordinate[left of =output, xshift=2.7cm] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (output) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

tikz-pgf tikz-arrows
add a comment |
I am trying to draw a picture representing a control theory graph.
I am pretty much there, but there are two problems:
I need to have a dot above the x(t) in the first equation in the big box. When I put it in maths mode, it draws four lines instead of two, or, depending on how I split the maths mode, it puts it all on one line. Any ideas on how to get that damned dot above the x without changing the layout of the box?
The RHS arrow with the y(.) above it is too long. I would like to get it back down to a length close to the LHS arrow with the v(.), it would just look nicer!
Here is my code :
documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right of=input] (sum) B;
node [block, right of=sum] (controller) beginarray dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray;
!node [sum, right of=controller, node distance=3.651cm] (mat) C;
node [sum, below of=controller] (K) K;
node [output, right of=controller] (output) C;
node [input, name=end, right of=output, node distance=5cm] ;
coordinate [below of=sum] (measurements) ;
coordinate [right of=output](fin) ;
coordinate[left of =output, xshift=2.7cm] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (output) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

tikz-pgf tikz-arrows
I am trying to draw a picture representing a control theory graph.
I am pretty much there, but there are two problems:
I need to have a dot above the x(t) in the first equation in the big box. When I put it in maths mode, it draws four lines instead of two, or, depending on how I split the maths mode, it puts it all on one line. Any ideas on how to get that damned dot above the x without changing the layout of the box?
The RHS arrow with the y(.) above it is too long. I would like to get it back down to a length close to the LHS arrow with the v(.), it would just look nicer!
Here is my code :
documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right of=input] (sum) B;
node [block, right of=sum] (controller) beginarray dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray;
!node [sum, right of=controller, node distance=3.651cm] (mat) C;
node [sum, below of=controller] (K) K;
node [output, right of=controller] (output) C;
node [input, name=end, right of=output, node distance=5cm] ;
coordinate [below of=sum] (measurements) ;
coordinate [right of=output](fin) ;
coordinate[left of =output, xshift=2.7cm] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (output) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

tikz-pgf tikz-arrows
tikz-pgf tikz-arrows
edited Nov 13 '18 at 10:13
Phelype Oleinik
23.3k54584
23.3k54584
asked Nov 13 '18 at 10:11
RemiRemi
264
264
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Similar to jak123's nice answer but with some slight differences:
- Rather than introducing a new length
mywidthI make use of thenode distance=2cmkey. - I also switch to the
tikzsetsyntax instead oftikzstyle. - I drop superfluous elements of the code.
Here is what went wrong in your code
- You forgot to add the column specifiers in the array, which is why it did not work.
- You were loading but not using the positioning library.
- Several coordinates were redundant.
So here is the result:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackagetikz
usetikzlibraryarrows,positioning
begindocument
tikzsetblock/.style=draw, fill=white, rectangle,
minimum height=6em, minimum width=12em,
sum/.style=draw, fill=white, circle, node distance=2cm,
input/.style=coordinate,
output/.style=coordinate
begincenter
begintikzpicture[auto, node distance=2cm,>=latex']
node [input, name=input] ;
node [sum, right= of input] (sum) B;
node [block, right=of sum,align=left] (controller)
$beginarrayr@,l dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray$;
node [sum, right=of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
coordinate [below=of sum] (measurements) ;
coordinate [right=1.5cm of mat](fin) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=x,above,midway] $x(bullet)$
coordinate[midway] (x) (mat);
draw [->] (mat) -- node[midway,above] $y(bullet)$ (fin);
draw [-] (x) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter

add a comment |
Like this?
documentclassminimal
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
newlengthmywidth
setlengthmywidth2cm
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right=mywidth of input] (sum) B;
node [block, right=mywidth of sum] (controller) $beginarrayccc dotx(t)&=&Ax(t)+Bu(t)\ x(0)&=&x_0 endarray$;
node [sum, right=mywidth of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
node [output, right=mywidth of controller] (output) C;
node [input, name=end, right=mywidth of output] ;
coordinate [below=mywidth of sum] (measurements) ;
coordinate [right=mywidth of output] (fin) ;
coordinate[left = mywidth/2 of output] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (mat) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

1
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459755%2fshorten-the-length-of-an-arrow-in-tikz%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Similar to jak123's nice answer but with some slight differences:
- Rather than introducing a new length
mywidthI make use of thenode distance=2cmkey. - I also switch to the
tikzsetsyntax instead oftikzstyle. - I drop superfluous elements of the code.
Here is what went wrong in your code
- You forgot to add the column specifiers in the array, which is why it did not work.
- You were loading but not using the positioning library.
- Several coordinates were redundant.
So here is the result:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackagetikz
usetikzlibraryarrows,positioning
begindocument
tikzsetblock/.style=draw, fill=white, rectangle,
minimum height=6em, minimum width=12em,
sum/.style=draw, fill=white, circle, node distance=2cm,
input/.style=coordinate,
output/.style=coordinate
begincenter
begintikzpicture[auto, node distance=2cm,>=latex']
node [input, name=input] ;
node [sum, right= of input] (sum) B;
node [block, right=of sum,align=left] (controller)
$beginarrayr@,l dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray$;
node [sum, right=of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
coordinate [below=of sum] (measurements) ;
coordinate [right=1.5cm of mat](fin) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=x,above,midway] $x(bullet)$
coordinate[midway] (x) (mat);
draw [->] (mat) -- node[midway,above] $y(bullet)$ (fin);
draw [-] (x) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter

add a comment |
Similar to jak123's nice answer but with some slight differences:
- Rather than introducing a new length
mywidthI make use of thenode distance=2cmkey. - I also switch to the
tikzsetsyntax instead oftikzstyle. - I drop superfluous elements of the code.
Here is what went wrong in your code
- You forgot to add the column specifiers in the array, which is why it did not work.
- You were loading but not using the positioning library.
- Several coordinates were redundant.
So here is the result:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackagetikz
usetikzlibraryarrows,positioning
begindocument
tikzsetblock/.style=draw, fill=white, rectangle,
minimum height=6em, minimum width=12em,
sum/.style=draw, fill=white, circle, node distance=2cm,
input/.style=coordinate,
output/.style=coordinate
begincenter
begintikzpicture[auto, node distance=2cm,>=latex']
node [input, name=input] ;
node [sum, right= of input] (sum) B;
node [block, right=of sum,align=left] (controller)
$beginarrayr@,l dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray$;
node [sum, right=of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
coordinate [below=of sum] (measurements) ;
coordinate [right=1.5cm of mat](fin) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=x,above,midway] $x(bullet)$
coordinate[midway] (x) (mat);
draw [->] (mat) -- node[midway,above] $y(bullet)$ (fin);
draw [-] (x) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter

add a comment |
Similar to jak123's nice answer but with some slight differences:
- Rather than introducing a new length
mywidthI make use of thenode distance=2cmkey. - I also switch to the
tikzsetsyntax instead oftikzstyle. - I drop superfluous elements of the code.
Here is what went wrong in your code
- You forgot to add the column specifiers in the array, which is why it did not work.
- You were loading but not using the positioning library.
- Several coordinates were redundant.
So here is the result:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackagetikz
usetikzlibraryarrows,positioning
begindocument
tikzsetblock/.style=draw, fill=white, rectangle,
minimum height=6em, minimum width=12em,
sum/.style=draw, fill=white, circle, node distance=2cm,
input/.style=coordinate,
output/.style=coordinate
begincenter
begintikzpicture[auto, node distance=2cm,>=latex']
node [input, name=input] ;
node [sum, right= of input] (sum) B;
node [block, right=of sum,align=left] (controller)
$beginarrayr@,l dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray$;
node [sum, right=of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
coordinate [below=of sum] (measurements) ;
coordinate [right=1.5cm of mat](fin) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=x,above,midway] $x(bullet)$
coordinate[midway] (x) (mat);
draw [->] (mat) -- node[midway,above] $y(bullet)$ (fin);
draw [-] (x) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter

Similar to jak123's nice answer but with some slight differences:
- Rather than introducing a new length
mywidthI make use of thenode distance=2cmkey. - I also switch to the
tikzsetsyntax instead oftikzstyle. - I drop superfluous elements of the code.
Here is what went wrong in your code
- You forgot to add the column specifiers in the array, which is why it did not work.
- You were loading but not using the positioning library.
- Several coordinates were redundant.
So here is the result:
documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackagetikz
usetikzlibraryarrows,positioning
begindocument
tikzsetblock/.style=draw, fill=white, rectangle,
minimum height=6em, minimum width=12em,
sum/.style=draw, fill=white, circle, node distance=2cm,
input/.style=coordinate,
output/.style=coordinate
begincenter
begintikzpicture[auto, node distance=2cm,>=latex']
node [input, name=input] ;
node [sum, right= of input] (sum) B;
node [block, right=of sum,align=left] (controller)
$beginarrayr@,l dotx(t)=&Ax(t)+Bu(t)\ x(0)=&x_0 endarray$;
node [sum, right=of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
coordinate [below=of sum] (measurements) ;
coordinate [right=1.5cm of mat](fin) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=x,above,midway] $x(bullet)$
coordinate[midway] (x) (mat);
draw [->] (mat) -- node[midway,above] $y(bullet)$ (fin);
draw [-] (x) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter

answered Nov 13 '18 at 11:11
marmotmarmot
100k4115222
100k4115222
add a comment |
add a comment |
Like this?
documentclassminimal
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
newlengthmywidth
setlengthmywidth2cm
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right=mywidth of input] (sum) B;
node [block, right=mywidth of sum] (controller) $beginarrayccc dotx(t)&=&Ax(t)+Bu(t)\ x(0)&=&x_0 endarray$;
node [sum, right=mywidth of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
node [output, right=mywidth of controller] (output) C;
node [input, name=end, right=mywidth of output] ;
coordinate [below=mywidth of sum] (measurements) ;
coordinate [right=mywidth of output] (fin) ;
coordinate[left = mywidth/2 of output] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (mat) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

1
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
add a comment |
Like this?
documentclassminimal
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
newlengthmywidth
setlengthmywidth2cm
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right=mywidth of input] (sum) B;
node [block, right=mywidth of sum] (controller) $beginarrayccc dotx(t)&=&Ax(t)+Bu(t)\ x(0)&=&x_0 endarray$;
node [sum, right=mywidth of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
node [output, right=mywidth of controller] (output) C;
node [input, name=end, right=mywidth of output] ;
coordinate [below=mywidth of sum] (measurements) ;
coordinate [right=mywidth of output] (fin) ;
coordinate[left = mywidth/2 of output] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (mat) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

1
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
add a comment |
Like this?
documentclassminimal
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
newlengthmywidth
setlengthmywidth2cm
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right=mywidth of input] (sum) B;
node [block, right=mywidth of sum] (controller) $beginarrayccc dotx(t)&=&Ax(t)+Bu(t)\ x(0)&=&x_0 endarray$;
node [sum, right=mywidth of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
node [output, right=mywidth of controller] (output) C;
node [input, name=end, right=mywidth of output] ;
coordinate [below=mywidth of sum] (measurements) ;
coordinate [right=mywidth of output] (fin) ;
coordinate[left = mywidth/2 of output] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (mat) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

Like this?
documentclassminimal
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes,arrows
usetikzlibrarypositioning, quotes
newlengthmywidth
setlengthmywidth2cm
begindocument
tikzstyleblock = [draw, fill=white, rectangle,
minimum height=6em, minimum width=12em]
tikzstylesum = [draw, fill=white, circle, node distance=2cm]
tikzstyleinput = [coordinate]
tikzstyleoutput = [coordinate]
begincenter
begintikzpicture[auto, node distance=4cm,>=latex']
node [input, name=input] ;
node [sum, right=mywidth of input] (sum) B;
node [block, right=mywidth of sum] (controller) $beginarrayccc dotx(t)&=&Ax(t)+Bu(t)\ x(0)&=&x_0 endarray$;
node [sum, right=mywidth of controller] (mat) C;
node [sum, below=1cm of controller] (K) K;
node [output, right=mywidth of controller] (output) C;
node [input, name=end, right=mywidth of output] ;
coordinate [below=mywidth of sum] (measurements) ;
coordinate [right=mywidth of output] (fin) ;
coordinate[left = mywidth/2 of output] (nodek) ;
draw [draw,->] (input) -- node $v(bullet)$ (sum);
draw [->] (sum) -- node $u(bullet)$ (controller);
draw [->] (controller) -- node[name=(x)] $x(bullet)$ (mat) ;
draw [->] (mat) -- node $y(bullet)$ (fin);
draw [-] (nodek) |- (K);
draw [->] (K) -| (sum);
endtikzpicture
endcenter
enddocument

edited Nov 13 '18 at 11:15
answered Nov 13 '18 at 10:58
jak123jak123
2,30611334
2,30611334
1
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
add a comment |
1
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
1
1
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
Despite the warning, I have to thank you! I spent ages on that, and now, it works! <3
– Remi
Nov 13 '18 at 11:15
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459755%2fshorten-the-length-of-an-arrow-in-tikz%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown