Réponse apportée
How to choose solver, optimization or curve fitting?
You can either use a regularized regression function, or the optimization toolbox. I would guess optimization is the easier choi...

environ 12 ans il y a | 1

Réponse apportée
Plotting Y=f(X) after a regression where X contains 2 predictors
It doesn't make sense to plot y vs f(x1). Here you have several options. 1) You can plot y vs x1 and y vs x2, which can show...

environ 12 ans il y a | 0

Réponse apportée
What is curve fitting and how to do it?
I will keep it concise so as not to go into an off-matlab area. Curve fitting (commonly associated with regression) usually come...

environ 12 ans il y a | 0

Réponse apportée
What formula is used in curve fitting app; probability plot; extreme value?
I am assuming you are either referring to cftool or dfittool. If you wnat to find out how the functions work, go to "File" and c...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Array Question time again
Assuming this is a cell array, the naivest way to go is: X=zeros(54,164); for i=1:54 X(i,:)=[OldArray{i+1,1} OldArray...

environ 12 ans il y a | 0

Réponse apportée
For loop with moving window
If I understand you correctly, you have an indexing problem. Try an indexing scheme like this: for i=1:N Weights(i)=fu...

environ 12 ans il y a | 0

Réponse apportée
How to save function outputs as a vector to workspace.
Your question is worded in an ambiguous way, I am not sure I understand your exact question. I will speculate a bit and hope one...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
3D volume image reconstruction
How you would handle this problem depends on what you would like to achieve as the end result. Keep in mind, the "z axis" as you...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Creating a vector from the diagonal values of a square matrix
vector=diag(matrix); check help diag for more detailed information.

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Need to find files in a dir structure with similar but not identical names
Look for an implementation of grep or agrep for MATLAB. However if your problem has a monotonic redundancy, I might be able to s...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How to locate the the position of a 3D subimage in larger image in Matlab?
Depending on the size and type of data, it might be preferable to use a convolution or an erosion. I can't give a specific code ...

environ 12 ans il y a | 1

Réponse apportée
Exist returning zero when file definitely exists; rehash not working
I am not sure why the wildcar doesn't work. How about using the wildcard with dir beforehand and searching within the matlab mat...

environ 12 ans il y a | 0

Réponse apportée
replace NaN with zeros for several variables in a dataset
It is surprising that the isnan function is not working, I have been able to use it in similar situation without any problems. H...

environ 12 ans il y a | 0

Réponse apportée
Help with data from multiple files
for i=1:26 eval(strcat('xloc',num2str(i),'=COTO_',num2str(i),'_sphere(:,1);')); end This is a lazy way to do it. Also, ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Make a better code to check the neighbours of a cell in a matrix and replace a value
If I understand correctly from your comment at the previous answer here is a pseudo-code that can do this in a somewhat simpler ...

plus de 13 ans il y a | 0

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

plus de 13 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 13 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 13 ans il y a