Question

processing experimental data with polyfit

I have this code, it works, but with some warnigs and it doesn't look like other codes I see here, because I am not a programmer...

etwa ein Monat ago | 1 answer | 0

Question

how to use taguchi array

I used this code [Ta] = TaguchiArray(3,101) (from https://www.mathworks.com/matlabcentral/fileexchange/71628-taguchiarray) t...

etwa 2 Monate ago | 0 answers | 0

Question

extract matrix from matrix with the values of the axis

x=linspace(0,8,91); y=linspace(1,3,56); I have a matrix DL1 (91x46) and need to extract DL2 =DL1(DL1<=2) and the values of the...

4 Monate ago | 1 answer | 0

Question

2d data set distribution

I have this data set. Is it possible to find the distribution of the data to see the most and the least common values? thanks

4 Monate ago | 0 answers | 0

Answered

the same range color bar looks different

The upper limits of the color bars were slightly different and the gradient changed when I set them to the same value (100) (see...

the same range color bar looks different

The upper limits of the color bars were slightly different and the gradient changed when I set them to the same value (100) (see...

4 Monate ago | 0

Question

the same range color bar looks different

Why these two similar range colorbars look differently (see attachment). How can I make them look the same? thanks

4 Monate ago | 2 answers | 0

Question

sensitivity analysis of data with multiple variables

I have a set of data that depends on 3 variables: Sys_LCOE(jj,i,ii) ii=1:1:length(YF); i=1:1:length(PVprice); jj=1:1:length(...

4 Monate ago | 0 answers | 0

Question

how to fit 3 lines with one equation

I have these 3 lines with x and y, that correspond to C=[25 40 60], is it possible generate an equation that will be valid for a...

5 Monate ago | 1 answer | 0

Question

maximum points on the surface

On this beautiful plot I need a line that shows the maximum points https://www.mathworks.com/matlabcentral/answers/uploaded_f...

9 Monate ago | 1 answer | 0

Answered

fitting 2d data set fit function is not working

thanks, it is perfect but the fit gives this warning: Warning: Equation is badly conditioned. Remove repeated data points or tr...

fitting 2d data set fit function is not working

thanks, it is perfect but the fit gives this warning: Warning: Equation is badly conditioned. Remove repeated data points or tr...

9 Monate ago | 0

Question

fitting 2d data set fit function is not working

Hi, this is my data set and I wanted to try to get a fit for it. well, did not work with fit([x,y],z,'poly23'); first it sa...

9 Monate ago | 2 answers | 0

Answered

interp1 find values at axis zero problem The grid vectors must contain unique points.

I have deleted data that was >0.024, so its fixed thank you everyone

interp1 find values at axis zero problem The grid vectors must contain unique points.

I have deleted data that was >0.024, so its fixed thank you everyone

10 Monate ago | 0

Question

interp1 find values at axis zero problem The grid vectors must contain unique points.

Voc=interp1(I,V,0); it is a simple code, it runs with the first 2 sets of data but it doesn't run with the third. someone he...

10 Monate ago | 2 answers | 0

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

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

10 Monate 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 ...

10 Monate ago | 3 answers | 0

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

10 Monate ago | 1 answer | 0

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

12 Monate ago | 1 answer | 0

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

etwa ein Jahr ago | 1 answer | 0

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?

etwa ein Jahr ago | 2 answers | 0

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(:)],...

etwa ein Jahr ago | 2 answers | 0

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

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

etwa ein Jahr 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...

etwa ein Jahr ago | 1 answer | 0

Answered

reading a workspace value inside a function

the solution was the momoizefun, look for details above.

reading a workspace value inside a function

the solution was the momoizefun, look for details above.

mehr als ein Jahr 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...

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

Answered

decrease the elapse time

appointing to 'simple' and 'int16' made huge difference

decrease the elapse time

appointing to 'simple' and 'int16' made huge difference

mehr als ein Jahr 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...

mehr als ein Jahr ago | 3 answers | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0