Risposto Producing a Matrix
I believe you are looking for meshgrid:
[Xa, Xb]=meshgrid(X);
[Ya, Yb]=meshgrid(Y);
[Za, Zb]=meshgrid(Z);
Dist = sqrt((X...
Risposto fitting function of two variables
You can use fminsearch to optimize your coefficients, but you still need to know the basic form of the function.
Write a functi...
oltre 14 anni fa | 1
Risposto question about the function of callback
Another option is to do this:
push_button(k) = uicontrol('style','pushbutton',...
'callback',{@pushbutton_callback_main,k})...
oltre 14 anni fa | 0
Domanda
Break point in parfor loop
I am trying to find a way to include a cancel button to a code that uses PARFOR.
I tried using the same technique used in regul...
Risposto Using "for" and "fsolve"
Your initial guess x0 is the same for all iterations. I dont know what the "countries" function does, and how the other variable...
quasi 15 anni fa | 0
Risposto Adding data in cells
There's probably a way to do this without for loops but this is my suggestion:
L=length(C);
MatSize=size(C{1});
D=z...