Community Profile

photo

vx2008


university

Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


shall I plot some figure to save without show?
I want to plot some figures by functions 'bar' and 'plot', but I don't want this figure being shown and just want to save it on ...

ongeveer 7 jaar ago | 1 answer | 0

1

answer

Question


how shall I call 'aa.py' on Matlab2015b?
Now I have code a python script--'aa.py' as 'e:\aa.py'; I heard 'matlab2015' can call and execute '.py' file, but I don't kno...

ongeveer 7 jaar ago | 0 answers | 0

0

answers

Question


shall I get a good algorithm for finding a optimal vector in matlab?
Know values: matrix(n x m)—— X,F and Delta; vector—-u; wanted value: vector—— w; restrictive condition: <</matlabcentra...

ongeveer 7 jaar ago | 0 answers | 0

0

answers

Question


is 'arrayfun' faster much more than 'for' loop?
now I have written a function which use a 'for' loop and it runs slowly because of large calculations; If i use 'arrayfun' to r...

ongeveer 7 jaar ago | 3 answers | 0

3

answers

Question


why I get "complex number" for the common calculation?
RSTR=sum(wt.*log(rt1./rft1)); 'wt', 'rt1' and 'rft1' are all real numbers and why 'RSTR' is complex numbers? Z=log( bsxfun...

ongeveer 7 jaar ago | 2 answers | 0

2

answers

Question


how to get the same elements from many different vectors and each index for each vectors?
for example, now I have three vectors as below: v1=['a','b','c','d','e','f']; v2=['a','c','d','f','g']; v3=['c','d','e','j'...

ongeveer 7 jaar ago | 1 answer | 0

1

answer

Question


how shall I replace "inline" function by anonymous function
if true myfunc=inline('beta(1)*x+beta(2)','beta','x'); [~,r]=nlinfit(x,y,myfunc,[1,1]); end I code as above ...

ongeveer 7 jaar ago | 1 answer | 0

1

answer

Answered
which function can calculate standard deviation with weights?
thank you very much;

ongeveer 7 jaar ago | 0

Question


which function can calculate standard deviation with weights?
I know function "std" can get an array's standard deviation; but now I want to calculate standard deviation with certain weig...

ongeveer 7 jaar ago | 2 answers | 0

2

answers

Question


how shall I read/write/add-write big data in MatLab?
I set big data in variable X and Now I want to save it on my hard disk; I use "save output X", and get warning: "out of memor...

ongeveer 7 jaar ago | 2 answers | 0

2

answers

Question


how shalll I swith to different Axes in one figure?
figure; H1=axes; plot(x1,y1);(after that insert its legend on the figure) H2=axes; plot(x2,y2);(af...

meer dan 7 jaar ago | 1 answer | 0

1

answer

Question


Shall I get a better algorithm about mixture from some components?
Material 'A', 'B', 'C', 'D', 'E', 'F'.......... A is formed by x1--20%,x2--10%,x3--20%,x4--30%,others--20% B is formed by...

bijna 8 jaar ago | 0 answers | 0

0

answers

Question


how to return two results by one output when using arrayfun()?
f=@(X) fun1(x); data=arrayfun(f,xgroup); about funtion 'fun1', now shall I return two result into the 'data' for one ele...

ongeveer 8 jaar ago | 2 answers | 0

2

answers

Question


How shall I calculate the most drawback of trading capital by Matlab?
Now I have get my capital curve for many trading orders; I want to know the most drawback of this capital; I know I can get it ...

ongeveer 8 jaar ago | 0 answers | 0

0

answers

Question


Shall I draw K lines and volumn bars in the same figure?
I plot K lines and volumn bars as below picture by subplot() as below: << <</matlabcentral/answers/uploaded_files/44177/un...

ongeveer 8 jaar ago | 0 answers | 0

0

answers

Question


How to let figure adjust its 'y' axis' tick range by itself?
for example: x=[50 12 32 54 23 54 75 76 24 545 56 878 876 435 456 54 454 56 6 87 6 67 8 ]; Then plot(x),get below figure: ...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


Shall I extract data from Matrix by group seperately?
Now I have a matrix as below: z = 1.0000 -7.6365 2.0000 1.7736 3.0000 -11.1412 4.0000 -10.1350 ...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


what is the meaning of plus in boxplot produced by ANONA1?
I run 'anova1(x)' and get the below plot: <</matlabcentral/answers/uploaded_files/42812/untitled.jpg>> I don't know what t...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


How shall I confirm the significance of week days' Up-Downs for some stock?
I survey on the ups and downs of one stock in the past 3000 trading days and sort them by week day: Monday (ups53%, 0.53-0.5=0.0...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


Shall I get weeks' K line of some stock according to its day's data?
Now I have days' data as below form: date(1:10),[open(1:10),high(1:10),low(1:10),close(1:10)] ans = '2015/05/04' ...

meer dan 8 jaar ago | 0 answers | 0

0

answers

Question


Shall I get some advice about building a strategy tester by Matlab?
I want to build a strategy tester by Matlab to test some strategy on stocks; I hope this tester can test any strategy on Matl...

meer dan 8 jaar ago | 0 answers | 0

0

answers

Question


how to show more data by uitable?
When I display data by uitable; I get the table as below: <</matlabcentral/answers/uploaded_files/42358/untitled.jpg>> ...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


shall I use 'plotyy' to plot two curves from the same starting point?
I use plotyy to plot as below picture: <</matlabcentral/answers/uploaded_files/42353/Picture1.png>> Just you see, the red ...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


how to arrange an array elemets to unique pairs?
for example, X={'a1', 'b2', 'c3', 'd4'}; I want to rearrange X as below: A={'a1'; 'a1'; 'a1'; 'b2';'b2'; 'c3' } B={'b2'; '...

meer dan 8 jaar ago | 2 answers | 0

2

answers

Question


How to delete elements which in cell?
Now I have DataA and DataB as below: DataA = {5x1 cell} [5x1 double] DataB = {5x1 cell} [5x1 do...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


How to transfer dates' data of stock into weeks' data by Matlab?
I mean I have get data of some stock, by which I can use "candle" to plot date K lines; Now I want to plot week K lines by it...

meer dan 8 jaar ago | 0 answers | 0

0

answers

Question


how to change charactors of the table which is made by uitable by codes
I use the below code to get a table as below: f=figure('Position',[0 60 130+C*80,30+R*20]); t=uitable(f,'Data',Cdata,.....

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


how to do this calculation not by 'for' cycle?
I have the below data: data =[... 1.0000 1.0000 1.0000 53.1100;... 1.0000 2.0000 2.0000 59.0900;....

meer dan 8 jaar ago | 2 answers | 0

2

answers

Question


Shall I get a fitting function by Matlab according to two matrix
Now I have two mat 'X' and 'Y'; And I can get correlation of 'X' and 'Y' by function [R,P]=corrcoef(X,Y); I can do it as bel...

meer dan 8 jaar ago | 0 answers | 0

0

answers

Question


a question about function -- uigetfile()
the code [FileName PathName]=uigetfile(('*.xlsx'), 'Choose a File'); runs Ok; but the code [FileName PathName]=uigetf...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Load more