Answered
how to have the same plot area size when some axis names become 2 lines
Ok having two lines in the axis name does the job, thanks

5 years ago | 0

Question


how to have the same plot area size when some axis names become 2 lines
I am generating plots with different axis names, and when long names become 2 lines they make the plot area smaller, but I need ...

5 years ago | 3 answers | 0

3

answers

Question


optimizing for loop that is been called often
can this loop be optimized? It is called 1m times and is the only thing I couldn't optimize yet. Oper_year=1:1:Lifetime; [co...

5 years ago | 1 answer | 0

1

answer

Question


5 equations with 5 unknowns
this is the code, and it says: Undefined function or variable 'Rp'. Vmp=0.57 Voc=0.66 Isc=0.0067 Imp=0.0062 k=1.38e-23 q=1...

5 years ago | 1 answer | 0

1

answer

Question


sfit data array output
Hi, I have this: SS_fit_Xs=fit(Wave_length,real_Solar_spectrum,'poly9'); then I can plot it so easily like this: plot(SS_fit_...

5 years ago | 1 answer | 0

1

answer

Question


how to change axis of a matix?
my matrix is M(x,y,z) where: x=1:90 y=1:3:120 z=1:40 and c=y./z and I need to convert M into N(x,c). Any ideas?

5 years ago | 2 answers | 0

2

answers

Question


Error using accumarray First input SUBS must contain positive integer subscripts.
I am very much troubled solving this: >> [X, Y, Z]=ndgrid(x,y,z); >> C = round(ceil(Y./Z)); >> N = accumarray([X(:), C(:)],...

5 years ago | 2 answers | 0

2

answers

Answered
how to assign data to axis vol3d
I have figured out myself, yeahh :) vol3d('cdata',interp3(year,3),'xdata',per,'ydata',day,'zdata',hour,'texture','3d');

5 years ago | 0

| accepted

Question


how to assign data to axis vol3d
I am plotting year(per,day,hour) using this line: vol3d('cdata',interp3(year,3),'texture','3d'); can you show me how to assign...

5 years ago | 1 answer | 0

1

answer

Answered
reading a workspace value inside a function
the solution was the momoizefun, look for details above.

5 years ago | 0

| accepted

Question


plotting multiple surfaces out of a 3d variable
I have a matrix G(X,Y,Z) that I try to plot as surface for each value of X in the same plot , manually I could do a line of a co...

5 years ago | 1 answer | 0

1

answer

Question


4D matrix manipulation
I have a 4D matrix G size of [k*j*i*l] so its G(k,j,i,l) , the sizes are: k=1x365, j=1x31, i=1x24, l=1x91. For estimat...

5 years ago | 1 answer | 0

1

answer

Answered
decrease the elapse time
appointing to 'simple' and 'int16' made huge difference

5 years ago | 0

| accepted

Question


decrease the elapse time
this set of files organized to solve 'environment' function with ranges of different variables. I followed all possible instruct...

5 years ago | 3 answers | 0

3

answers

Question


how to preallocate a variables
How do I preallocate variable in this code, when they are inside different functions? Thanks In general it looks like this: Sc...

5 years ago | 1 answer | 0

1

answer

Question


make the for loop run faster
I would appreciate any help to optimize this code since it runs 86400x365x19x37 times: for ii = 1 : length(time) if time(ii)<=...

5 years ago | 1 answer | 0

1

answer

Question


reading a workspace value inside a function
I used xlsread in a function. now I have another function that uses this function, and that function is used by a script. So xls...

5 years ago | 1 answer | 0

1

answer

Answered
sum matrix column to get another matrix
thanks

5 years ago | 0

Question


sum matrix column to get another matrix
I have a matrix G 1441x365x91(MxNxL), I need another matrix D 1441x91 (MxL), whereby N must be summed. Shortly its a 1441x91 dat...

5 years ago | 2 answers | 0

2

answers

Question


getting Complex double in matlab while excel solves it
I had this formula in excel few years ago with less variation of WL, but now want to have a bigger range and put it into matlab ...

5 years ago | 1 answer | 0

1

answer

Answered
how to run function for several times with different variables
I just saved the loop for each variable. a=5 b=8 c=9 d=11 %a,b,c and d are function inputs n=a*0.1:a*0.1:a for i=1:length...

5 years ago | 0

Question


how to run function for several times with different variables
I have something like this: a=5 b=8 c=9 d=11 %a,b,c and d are function inputs n=a*0.1:a*0.1:a for i=1:length(n) "functio...

5 years ago | 2 answers | 0

2

answers

Question


code is running too long, help me to optimize it
I have written a code, it runs slow. I don't know if it is because of the code or just it should take so long because of the num...

5 years ago | 1 answer | 0

1

answer