Answered
interpolating over vectors and matrices
[pp tt] = ndgrid(period,time); G = griddedInterpolant(pp,tt,power); G(0.0417,3) This is making the assumption that you ...

14 years ago | 0

| accepted

Answered
Overlaying data on an image
You could use (or modify as necessary) my <http://www.mathworks.com/matlabcentral/fileexchange/29485-meshcanopy meshCanopy> util...

14 years ago | 0

Answered
solidity concept in labeled components
Solidity: Area / Convex Hull Area A rectangle will have a solidity of 1 because it is convex and thus its area is the convex ...

14 years ago | 1

Answered
I have problem with my function, when I am trying to enter x=1:1:10; it is not working, it is shows me only 1 number instead of 10.
fun = str2func(vectorize('@(x)20.*log10((10.*sqrt(1+x.^2))/(x.^2.*sqrt((1+0.1.^2.*x.^2).*(1+0.05.^2.*x.^2))));')) fun(1:10)

14 years ago | 0

Answered
How do I stop MATLAB from changing the focus to a random window after closing a dialog?
Hmmm. This seems to happen if the _'WindowStyle'_ is _'Modal'_: figure('windowstyle','modal') Apparently setting the _C...

14 years ago | 0

| accepted

Answered
Optimizing computing double integrals by elementwise matrix operations
If you are using R2012a, consider using |integral2| <http://www.mathworks.com/help/techdoc/ref/integral2.html doc integral2>

14 years ago | 0

| accepted

Answered
Concatenate matrix numbers linspace
Here is a terrible solution: x = 0:3; %sample x x = [x(1:end-1); x(2:end)]; %each start/end pair nAdd = 2; %add two eleme...

14 years ago | 0

Answered
Ignoring NaNs for Surface Fit
xyz = [x y z]; %x y z are column vextors xyz_no_nans = xyz(~any(isnan(xyz),2),:); %keep rows which have no nans x = xyz_no_n...

14 years ago | 1

| accepted

Answered
divide area under Histogram
doc trapz

14 years ago | 0

Answered
guidata doesn't save my data, why?
I am guessing that the use of |gcf()| is what is making this not work. If the figure's _HandleVisibility_ is _'off'_ or _'callb...

14 years ago | 0

Answered
Referencing a line of code
N. MATLAB does not have a |goto| statement. Use |if/elseif/else/end| or |switch/case| to make a decision tree.

14 years ago | 0

Answered
Forcing slider values to round to a valid number
There's probably a better way but: x = 10.5; vm = 3; y = 0:vm:(x+vm); [~,idx] = min(abs(x-y)); y(idx)

14 years ago | 0

Answered
Gui Table With Editable Column Names
No this is not possible. Your workaround with an edit box sounds like a good option.

14 years ago | 0

Answered
Narxnet, Error using struct, Conversion to struct from double is not possible.
If you highlight that selection in the help and right click "Evaluate Selection" do you get the same error? I am guessing y...

14 years ago | 0

| accepted

Answered
GUI error after saving as in another name
Did you resave the GUI from within GUIDE? You have to, you cannot just rename it in an explorer window.

14 years ago | 1

| accepted

Answered
Hot to change the settings of multiple gui components at the same time
Okay: handles = struct('h1',pi,'h2',3,'edit1',17); %exmaple handles set(cell2mat(struct2cell(handles)),'somefield',some_va...

14 years ago | 0

| accepted

Answered
applying dicomrename to multiple files
Why not just use: mydcmfiles = dir('*.dcm'); To create a structur containing the names of all of the files?

14 years ago | 1

| accepted

Answered
interpolation for irregural observations
Convert the dates to date numbers ( |doc datenum| ) and then use them as the x values corresponding to your data.

14 years ago | 0

Answered
How to fill an empty volume in a 3D matrix?
What do you mean you want to fill it with ones? BW = false(10,10,10); BW(3:6,3:6,3:6) = true; It is an empty volume wit...

14 years ago | 0

Answered
does a cell vector contains only NaN?
cisnan = @(C)all(cellfun(@(x)all(isnan(x(:))),C)); cisnan(your_cell)

14 years ago | 0

| accepted

Answered
Unlocking answers to last Cody problem?
You can answer other questions (not Cody Challenge Ones) and it will eventually let you see all solutions to that one.

14 years ago | 0

Answered
How to use CurveFitting coefficients in the rest of the code?
You answered it yourself! f(t2) *More* Whwere does _a1_ come from. Consider this: t = 1:10; p =2*(1:10)+ran...

14 years ago | 0

| accepted

Answered
Image as background in GUIDE
# Create an axes that covers the whole gui. # Have GUIDE automatically generate a CreateFcn for it # In this CreateFcn, Have s...

14 years ago | 0

Answered
How do i construct this matrix with else and elseif statements? Or should i be using cases?
@Everyone else: wayyyy too much effort: toeplitz([5 -4 0 0 -1 0 0 0 0 0 0 0],[5 -3 0 0 -2 0 0 0 0 0 0 0])

14 years ago | 2

Answered
What algorithm does "isosurf" command use ?
<https://groups.google.com/forum/?hl=de&fromgroups#!topic/comp.soft-sys.matlab/KGfP0isVaGE%5B1-25%5D Loren's Reply> I think t...

14 years ago | 0

Answered
date for release of Matlab 2012b general release
It will be available when it is available :)

14 years ago | 1

Answered
GUI of the button
In its callback, disable it after it's pushed: figure; uicontrol('string','Push Me!','position',[10 10 100 50],'callback',...

14 years ago | 0

| accepted

Answered
Add a callback function for impoint object
Sounds like you will want to use its _'addNewPositionCallback'_ function. *More* I think you can pass it the typical way u...

14 years ago | 0

Answered
Bizarre results with inpaint_nans
The second and third row don't look any different to me: 4.03390000000000 4.11170000000000 14948 100 3.93890000000000 4.04...

14 years ago | 0

Load more