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');

3 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...

3 years ago | 1 answer | 0

1

answer

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

3 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...

3 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...

3 years ago | 1 answer | 0

1

answer

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

3 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...

3 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...

3 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)<=...

3 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...

3 years ago | 1 answer | 0

1

answer

Answered
sum matrix column to get another matrix
thanks

3 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...

3 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 ...

3 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...

3 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...

4 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...

4 years ago | 1 answer | 0

1

answer