Réponse acceptée

KSSV
KSSV le 23 Jan 2017
plot(1:10)
xlabel({'hello';'there'})

3 commentaires

Patrick Ledingham
Patrick Ledingham le 2 Fév 2019
ylabel({'general';'kenobi'})
Jack Cooney
Jack Cooney le 28 Fév 2019
title({'you are a';'bold one'})
Hello, is there any other way to change line when editing the labels through property inspector? Appreciate any help!

Connectez-vous pour commenter.

Plus de réponses (2)

Jose Rego Terol
Jose Rego Terol le 30 Jan 2020
I tried this but I got an error.
xlabel({'Time (s)';'foot-Spike:' num2str(fs)})
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in spikes_detection_listdlg (line 36)
xlabel({'Time (s)';'foot-Spike:' num2str(fs)})
How can I include num2str within curly braces?

2 commentaires

xlabel({'Time (s)'; ['foot-Spike:' num2str(fs)]})
Jose Rego Terol
Jose Rego Terol le 30 Jan 2020
Works! Thanks!

Connectez-vous pour commenter.

I wanted to implement the same in for loop, the below method worked for me;
xlabelname = {}
for ii = 1:10
...
xlabelname{ii,1} = strcat('plot',num2str(ii));
end
Hope it helps if someone is stuck in this part

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by