English 中文(简体)
在MATLAB使用半分法(错误)?
原标题:Using errorbar() with semilogy() in MATLAB?

我愿在半log块上绘制数据<代码>x &y,其中标有误,ebar及其适当之处,yfitted。 这似乎不可行:

figure;
hold on;
errorbar(x,y,ebar);
semilogy(x,yfitted);

我拿着一条线性地块,而不是半log地。 我应当做些什么?

最佳回答

审判

h = err或bar(x,y,ebar);
set(get(h, Parent ),  YScale ,  log )

ax = axes();
err或bar(ax, x,y,ebar);
set(ax,  YScale ,  log );
问题回答

这就是文件所说的话。

“如果你试图在线性轴形形形形形形形形形形形形形形形形形形形色色体上添加一个 log、半log或半分块,则轴线模式将保持原样,而新数据将划为线体”。

我要建议,你只是推翻你策划的次序,即。

semilogy(x,yfitted);
hold on;
errorbar(x,y,ebar);




相关问题
Maths in LaTex table of contents

I am trying to add a table of contents for my LaTex document. The issue I am having is that this line: subsubsection{The expectation of (X^2)} Causes an error in the file that contains the ...

Math Overflow -- Handling Large Numbers

I am having a problem handling large numbers. I need to calculate the log of a very large number. The number is the product of a series of numbers. For example: log(2x3x66x435x444) though my actual ...

Radial plotting algorithm

I have to write an algorithm in AS3.0 that plots the location of points radially. I d like to input a radius and an angle at which the point should be placed. Obviously I remember from geometry ...

Subsequent weighted algorithm for comparison

I have two rows of numbers ... 1) 2 2 1 0 0 1 2) 1.5 1 0 .5 1 2 Each column is compared to each other. Lower values are better. For example Column 1, row 2 s value (1.5) is more ...

热门标签