Question

A formula of color: how does MATLAB link indexed value of color with RGB format?

As known, MATLAB can plot graphics with colorbar and *chosen colormap* and also read/write images in RGB-scheme. And two color ...

7 years ago | 1 answer | 0

Question

Simbolic Toolbox: how to avoid conj() in matrix *

N=10;x=0:(N-1); syms real r; a=r.^(x), b=r.^(-x), M=b'*a Result is a = [ 1, r, r^2, r^3, r^4, r^...

7 years ago | 1 answer | 1

Question

Symbolic Toolbox: integration

>> int('cos(x^2)^2') Warning: Explicit integral could not be found. ans = int(cos(x^2)^2, x) >> i...

7 years ago | 1 answer | 0

Answered

fitting data(on a table) with 2nd order polynomial

Curve Fitting ToolBox z=f(x,y) sftool

fitting data(on a table) with 2nd order polynomial

Curve Fitting ToolBox z=f(x,y) sftool

8 years ago | 0

Question

How to keep/use last used CURRENT DIR?

One decision has proposed by *om_s* (at russian matlab-forum): % put this file in matlabroot\toolbox\local\startup.m cd_...

8 years ago | 4 answers | 0

Question

Molviewer: How to extract data? to redirect console output

>> h3awo=pdbread(‘http://www.ebi.ac.uk/pdbe-srv/view/files/3awo.ent’) >> h3awo=pdbread(‘3awo.pdb’) % альтернатива – чтение ...

8 years ago | 0 answers | 0

Question

How to embed the sound into movie/avi file?

Is it possible? Or there are third-party tools/scripts? 1. Let's a sample with duration 30 sec (only wav-format as created wi...

8 years ago | 0 answers | 0

Question

How to correctly make FFT of sound set?

During 7 sec 7 tones plays with frequences (all in Hz), one tone -- one sec. Code: Fs=44100;f=[261.63 293.67 329.63 349....

8 years ago | 3 answers | 0

Question

Symbolic Math Toolbox VS MuPAD: example in advance of the first?

MATLAB >> simplify(exp(log10(x))) ans = x^(1/log(10)) MuPAD simplify(exp(log(10,x)), ln) No effect. How to...

8 years ago | 3 answers | 0

Answered

Is there a smarter way to create a large vector, with repeated numbers in a diminishing quantity?

[1,2,2,3,3,3,4,4,4,4,...] similar task n=1:10 trinv(n) = floor((1+sqrt(1+8*n))/2) (http://oeis.org/A002024)

Is there a smarter way to create a large vector, with repeated numbers in a diminishing quantity?

[1,2,2,3,3,3,4,4,4,4,...] similar task n=1:10 trinv(n) = floor((1+sqrt(1+8*n))/2) (http://oeis.org/A002024)

8 years ago | 0

Question

Bug: a programming/emulation of Brush Tool in Figure Editor

x=0:.1:10;y=sin(x);h1=figure(1);h2=plot(x,y); condition=@(x,y) abs(y)<.1; h3=brush(h1);set(h3,'Color',[0 .5 1],'Enable',...

8 years ago | 0 answers | 0

Answered

Wish-list for MATLAB Answer sections.

Asking a question, sometimes I forgot to fill "keyword" field and press OK button, the error occured, but by browser (Mozilla) b...

Wish-list for MATLAB Answer sections.

Asking a question, sometimes I forgot to fill "keyword" field and press OK button, the error occured, but by browser (Mozilla) b...

8 years ago | 1

Answered

How to brush data automatically?

x=1:0.5:10;y=x.^2;hf=figure(1);plot(x,y); hb=brush(hf);get(hb);set(hb,'Color',[0 1 0]); To define brush data I need m...

How to brush data automatically?

x=1:0.5:10;y=x.^2;hf=figure(1);plot(x,y); hb=brush(hf);get(hb);set(hb,'Color',[0 1 0]); To define brush data I need m...

8 years ago | 0

Answered

ODE- How to solve this equation??

be exactly in y(t) definition and remember that y(t) is a COLUMN vector. also in -- @(t,y) fun(t,Y,It,I) -- you use y and Y!

ODE- How to solve this equation??

be exactly in y(t) definition and remember that y(t) is a COLUMN vector. also in -- @(t,y) fun(t,Y,It,I) -- you use y and Y!

8 years ago | 0

Question

How to print axes area on GUI?

1. Axes on the GUI-window (not figure) 2. GUI-win property "Resizable=on" maybe set 3. I need to obtain jpg or bmp file with o...

8 years ago | 2 answers | 0

Answered

Plotting multiple graphs in one figure

maybe plot(gca,x1,y1) plot(gca,x2,y2)

Plotting multiple graphs in one figure

maybe plot(gca,x1,y1) plot(gca,x2,y2)

8 years ago | 0

Question

How to brush data automatically?

On the "Figure Editor" window there is button "brush/select data". Also command >>brush exists. This effects in case: >>fplot(...

8 years ago | 2 answers | 0

Question

inline VS anonymous functions

I don't see differences between... but - maybe @fun is more wide than inline-function >> a a = 1 >> x=1:10 ...

8 years ago | 2 answers | 1

Question

How to lift the X-axis on graph?

Let's f(x,y)=0 graph ezplot('sin(x)*sin(y)*sin(x*y)-1/4',[0 pi -4 4]) But more convenient, because of symmetry, -- to li...

8 years ago | 1 answer | 0

Answered

Two ways of M-subfunction definition: what are discrepances?

Thanks for answers. As I understand, if varname in nested func. coincides with varname in primary func. that uses variable that...

Two ways of M-subfunction definition: what are discrepances?

Thanks for answers. As I understand, if varname in nested func. coincides with varname in primary func. that uses variable that...

8 years ago | 0

Question

Two ways of M-subfunction definition: what are discrepances?

As known, there are 2 ways -- nested subroutines and secondaries subr. 1. nested function... ... function... ...

8 years ago | 3 answers | 2

Question

TeX/LaTeX: how to define cubic root?

As known, \sqrt{...} for square root.. One can use ^(1/3), but I wish beaty sign of root...

8 years ago | 1 answer | 1

Question

Figure Editor: how to change default settings?

R2010a is installed on two computers (in different places). Someway, while same simple command >>fplot('x.^2',[0 1]), Figure Ed...

8 years ago | 1 answer | 0

Question

TeX problem -- why?

This is working gtext('\Sigma') gtext('\color {red} 5') This is not working gtext('\frac{1}{2}') gtext('\sqrt(5...

8 years ago | 1 answer | 0

Question

What are the features of MATLAB fig-format?

One can store MATLAB Figure (Editor) content as special *.fig (of course, we can export jpg-files and others). But what is fig-f...

8 years ago | 2 answers | 0

Question

Chemistry: Are there specialized MATLAB tools (including 3d-party developers)?

http://www.mathworks.com/products/matlab/description4.html -- here the fullerene nolecule is depictured as an example. But have ...

8 years ago | 0 answers | 0

Question

Simbolic Tbx: how to solve trigonometric equation with polynoms?

Let >> syms y z >> syms x y z >> y=sym('- 9*x^4 + 7*x^3 - 13*x^2 + 3*x');z=sym('(1+x)^3'); Working >> solve(s...

8 years ago | 1 answer | 0

Question

How can I use attribute GLOBAL efficiently?

MATLAB Help describes this topic (word "global") very shortly. I ask it from such question: M-file as function: functio...

8 years ago | 4 answers | 1