c******s 发帖数: 197 | 1 想把bode plot的两个ylabel,(magnitude,phase)都改成latex字体,请问如何实现
我试着
ylabel('Magnitude (dB)','interpreter','latex','Fontsize',12),发现两个轴的la
bel都变成一样的了(Magnitude (dB))
我也试着把figure反编译,看他的code,在反编译的code里面好像可以改字体,但是命
令行,太多了,有没有简单一点的命令
谢谢! |
|
e*******k 发帖数: 655 | 2 我想卖的物品:
10台
HP 8500 $158 + YLabel
可接受的价格(必须明码标价!):
158
物品新旧要求:
Brand New, UPC removed
邮寄方式要求:
your fedex label
买卖双方谁承担邮寄损失(Required if not code only):
default
收款方式说明:
BOA
广告的有效期:
Till gone
我的联系方式:
站内信 |
|
E*******0 发帖数: 465 | 3 int XY[][]; //coordinate points.
int numXY; //length of points in the set
bool IsInSet(Xin, Yin)
{
long Xlabel, Ylabel;//assume 64 bits long type.
//First, we segment the points set into several 64-bit sets and one
sit with smaller than 64 bits.
int iteNum = numXY / 64; // number of sets with 64 bits.
int remianNum = numXY % 64; // number of set with smaller 64 bits
//output the points in the set with smaller 64 bits.
Xlabel=0;
Ylabel=0
for (int j=1; j<=remainNum; j++... 阅读全帖 |
|
f****e 发帖数: 15 | 4 要画两个图,我用了subplot function,但就是不知道怎样分别给两个图
加标题和坐标名称
我用的是
subplot(2,1,1)
title('title 1')
xlabel('x1')
ylabel('y1')
plot(y,x)
subplot(2,1,2)
tot;e('title2')
xlabel('x2')
ylabel('y2')
plot(y,x)
etc |
|
f****e 发帖数: 15 | 5 要画两个图,我用了subplot function.
可是不知道怎样分别!!
给两个subplots加上标题,坐标名称。以下是我的code,但不work.
subplot(2,1,1) ;
title('title 1','fontsize',12);
xlabel('x 1');
ylabel('y 1');
plot(y,x);
grid on;
subplot(2,1,2) ;
title('title 2','fontsize',12)
xlabel('x 2');
ylabel('y 2');
plot(y,x) ;
grid on; |
|
f**d 发帖数: 768 | 6 subplot(2,1,1);
plot(y,x);
title('title 1','fontsize',12);
xlabel('x 1');
ylabel('y 1');
grid on;
subplot(2,1,2) ;
plot(y,x) ;
title('title 2','fontsize',12)
xlabel('x 2');
ylabel('y 2');
grid on; |
|
f*******a 发帖数: 663 | 7 开始忘贴代码了,有朋友要求,就把修改后的代码贴在这里。改动不多,可以部分提升
效率。原来的也没删,注释掉了。供参考。
=========================================================================
clear;
close all
disp('The only input needed is a distance matrix file')
disp('The format of this file should be: ')
disp('Column 1: id of element i')
disp('Column 2: id of element j')
disp('Column 3: dist(i,j)')
if(0)
% mdist=input('name of the distance matrix file (with single quotes)?\n'
);
mdist = 'example_distances.dat';
disp('Reading input dis... 阅读全帖 |
|
b****e 发帖数: 685 | 8 我想卖的物品:
100+ diablo 3 小菠萝
单张面值:
可接受价格(必须明码标价!):
¥315
物品新旧要求:
全新
邮寄方式要求:
Scan copy , Photos or YLabel
付款方式说明:
支付宝
我的联系方式:
站内pm
其他补充说明:
receipt available upon request |
|
q**f 发帖数: 2903 | 9 我想卖的物品:
100+ diablo 3 小菠萝
单张面值:
可接受价格(必须明码标价!):
¥300
物品新旧要求:
全新
邮寄方式要求:
Scan copy , Photos or YLabel
付款方式说明:
支付宝
我的联系方式:
站内pm
其他补充说明:
receipt available upon request |
|
i******t 发帖数: 22541 | 10 total
480
+ ylabel (prefer ups)
没人要就退货了啊
这玩意太毒了
thanks |
|
b****e 发帖数: 685 | 11 我想卖的物品:
100+ diablo 3 小菠萝
单张面值:
可接受价格(必须明码标价!):
¥315
物品新旧要求:
全新
邮寄方式要求:
Scan copy , Photos or YLabel
付款方式说明:
支付宝
我的联系方式:
站内pm
其他补充说明:
receipt available upon request |
|
q**f 发帖数: 2903 | 12 我想卖的物品:
100+ diablo 3 小菠萝
单张面值:
可接受价格(必须明码标价!):
¥300
物品新旧要求:
全新
邮寄方式要求:
Scan copy , Photos or YLabel
付款方式说明:
支付宝
我的联系方式:
站内pm
其他补充说明:
receipt available upon request |
|
s********e 发帖数: 62 | 13 figure; % open a new figure window
plot(x, y, 'rx', 'MarkerSize', 10); % Plot the data
ylabel('Profit in $10,000s'); % Set the y-axis label
xlabel('Population of City in 10,000s'); % Set the x-axis label |
|
k*****e 发帖数: 22013 | 14 clf; clc; clear all;
syms x y
eq1 = ((x/7)^2*sqrt(abs(abs(x)-3)/(abs(x)-3))+(y/3)^2*sqrt(abs(y+3/7*sqrt(33
))/(y+3/7*sqrt(33)))-1);
eq2 = (abs(x/2)-((3*sqrt(33)-7)/112)*x^2-3+sqrt(1-(abs(abs(x)-2)-1)^2)-y);
eq3 = (9*sqrt(abs((abs(x)-1)*(abs(x)-.75))/((1-abs(x))*(abs(x)-.75)))-8*abs(
x)-y);
eq4 = (3*abs(x)+.75*sqrt(abs((abs(x)-.75)*(abs(x)-.5))/((.75-abs(x))*(abs(x)
-.5)))-y);
eq5 = (2.25*sqrt(abs((x-.5)*(x+.5))/((.5-x)*(.5+x)))-y);
eq6 = (6*sqrt(10)/7+(1.5-.5*abs(x))*sqrt(abs(abs(x)-1)/(abs(x)-1... 阅读全帖 |
|
j**u 发帖数: 6059 | 15 ft
第一个那个科大牛mm的才是解决问题的,其他都是依葫芦画瓢。
text1=text(x,y,'$$frac{a}{b}$$');
set(text1,'interpret','latex')
or
title1=title('$$frac{a}{b}$$')
set(title1,'interpret','latex')
还有ylabel, legend, ...,没区别。 |
|
c******n 发帖数: 4965 | 16 【 以下文字转载自 Linux 讨论区 】
【 原文由 creation 所发表 】
input trash.mp
beginfig(1)
draw begingrf(5in,4in);
rdata("datafile",1);
rdata("datafile",2);
rdata("data2",1);
rdata("data2",2);
matplot("0 1 cg ddash t*");
matplot("2 3 cr ddot tx");
ylabel("blahblah");
xlabel("red is sqrt(x)*1000, green is sqr(x)");
finishgrf; endfig;
end |
|
m******w 发帖数: 8 | 17 hi,
thanks. I have following matlab code. How to add another line of sta
tement to do the rotation for the x-axis? Just tried google and found n
othing helpful. thanks.
xlabel('Benchmarks','FontSize',18)
ylabel('Performance Increase (%)','FontSize',18)
set(gca,'XTickLabel',{'bzip2', 'crafty', 'gap', 'gcc', 'gzip', 'mcf', 'p
arser', 'perlbmk', 'twolf', 'vortex', 'vpr'}) |
|
x********3 发帖数: 566 | 18 谢谢kkff,经过尝试,我发现使用datestick似乎可以解决这个问题,目前可以画出图
来,并在x轴显示出两个坐标, 分别是第一个x值,01-Jan-2002 00:00:00和最后一个
01-Jan-2004 00:00:00。可是我想在中间多显示几个时间,比如加上01-Jan-2003 00:
00:00刻度。请指点一下。谢谢。下面是我的程序。
subplot(2,2,i1);
plot(time_new(:),y(:,(j1-1)*2+i1+1));
set(gca,'ytick',[-4:1:3]);
set(gca,'yticklabel',{'-4.0','-3.0','-2.0','-1.0','0.0','1.0','2.0','3.0'});
set(gca,'xticklabel',{'01-Jan-2002 00:00:00','01-Jan-2003 00:00:00','01-Jan-
2003 00:00:00'});
datetick('x',0);
ylabel(['Node ', num2str((j1-1)*4+i1), ' Stage (ft) |
|
T*******n 发帖数: 493 | 19 # This gnuplot script will get you started.
# You need to transpose the data and save it in the format
# shown at the end of the script.
# If you want to color-fill the bars, you'll need to edit the
# EPS file that is created.
set terminal postscript eps enhanced color solid "Times-Roman" 20
set output "bargraph.eps"
set xrange [0:5]
set yrange [0:8000]
set xlabel "cases"
set ylabel "values"
set xtics ("case 1" 1, "case 2" 2, "case 3" 3, "case 4" 4)
set grid ytics
set mytics 5
set key width -9 b |
|
y****e 发帖数: 1012 | 20 我想同时画bar和line,请问能在同一个图里面输出吗?
这样行不行呢?
set term postscript eps color blacktext "Helvetica" 24
set output '600030macd.eps'
set autoscale # scale axes automatically
unset log # remove any log-scaling
unset label # remove any previous labels
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "MACD Chart"
set xlabel "date"
set ylabel "s |
|
D****r 发帖数: 309 | 21 set term postscript eps color blacktext "Helvetica" 24
set output '600030macd.eps'
set autoscale # scale axes automatically
unset log # remove any log-scaling
unset label # remove any previous labels
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "MACD Chart"
set xlabel "date"
set ylabel "score"
#set key 0.01,100
set xrange [0 |
|
y****e 发帖数: 1012 | 22 set term postscript eps color blacktext "Helvetica" 24
set output 'p1.eps'
set autoscale # scale axes automaticallyun
set label # remove any previous labels
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "I/O Traffic"
set xlabel "Interval(5s)"
set ylabel "Data(KB)"
set key 0.01,10000
set xr [0:100]
set yr [0:10000]
plot "p1.tmp" using 1:2 title 'r0' ... 阅读全帖 |
|
r*****z 发帖数: 906 | 23 我用的是gnuplot 4.4,所以需要对你的命令做一点儿修改。
修改后的如下:
set term postscript eps color blacktext "Helvetica" 24
set output 'p1.eps'
set autoscale # scale axes automaticallyun
unset log
unset label
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "I/O Traffic"
set xlabel "Interval(5s)"
set ylabel "Data(KB)"
set key at 1,100
set xr [0:100]
set yr [0:10000]
plot "p1.tmp" using 1:2 title 'r0' with li... 阅读全帖 |
|
l*******G 发帖数: 1191 | 24 anglev=3000*2*pi/60.0 %angular velocity rad/sec
dt=2*pi/anglev/600; %T/600
t=(0:dt:60); %sec %one minute total
v=25; %mm/sec
xo=0+v*t; %center of rotation
yo=xo*0;
R=10 ; %10mm away from xo, yo
angle=0+t*anglev; %angle relative to x axis
xc=xo+R*cos(angle); %center of cirlcle
yc=yo+R*sin(mod(angle,2*pi));
%draw the circle
r=5; %5mm circle
angc=(0:0.1:2*pi);
for i=1:length(t)
x=xc(i)+cos(angc)*r; %circle
y=yc(i)+s... 阅读全帖 |
|
r****y 发帖数: 1437 | 25
Not always works.
Some commands do not accept this ... ,
e. g.
title xlabel, ylabel, etc. |
|
r****y 发帖数: 1437 | 26
Just same as line plots, xlabel( ), ylabel( )
If you do not want the contour values showing up, just wanna
legend, just
h = contour( *** )
b = clabel(h, 'manual');
and change "string" properties of b
Or even simpler,
gtext( your_legend)
click to whereever you wanna put
[c, h] = contour( ***);
get(h(i))
you will see the properties of line, then change it, e.g.
for i = 1:length(h)
set(h(i), 'L |
|