Answered
Interpreting varargin name-value pairs.
Yes... Use <http://www.mathworks.com/help/releases/R2014a/matlab/ref/inputparser-class.html |inputParser|>

12 years ago | 3

| accepted

Answered
How would I create my own 'unique' function without using the built in unique?
How about this? x = [1 2 3 3 3 3 2 4 5]; [uv,ia] = intersect(x,x)

12 years ago | 0

Answered
I want to repeat a section several times taking different values
<http://www.mathworks.com/matlabcentral/answers/57445 For the time1 time2 timen part> For interactive iteration of code sect...

12 years ago | 0

Answered
randn function with so many digits or huge numbers
Not strange at all! (1+0*randn(10,1)) Note the zero times randn - all of those components are zero. The very small st...

12 years ago | 1

Answered
How to add rows in a gui uitable when adding a new line to a plot from a pop-up menu
* 1) Before you set the Data of the uitable, get the previous data and concatenate it with the new existingData = get(hand...

12 years ago | 0

| accepted

Answered
Getting coordanates of text areas on the screenshot
Post an image! More than likely you'll want the boundingbox option of |regionprops|. Perhaps a call to |bwconvhull| before t...

12 years ago | 0

Answered
MATLAB Coder and sparse matrix
MATLAB Coder does not support sparse at this time. <http://www.mathworks.com/help/releases/R2014a/coder/ug/matlab-language-fe...

12 years ago | 0

Answered
GUIDE GUI Vs Programmatic GUI
Add: <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples> to the good programmatic example list....

12 years ago | 1

Answered
Volume of 3D data points and volume of Convex Hull of those data points
So it sounds like you have a binary three dimensional volume that you are essentially summing to get the volume of the points? ...

12 years ago | 0

| accepted

Answered
Ezplot non-integer axis limits
Here's what's happening. MATLAB is interpretting your expressions as necessary, when you say the limits are -1:0.5, it runs thi...

12 years ago | 0

| accepted

Answered
Intersecting polgons True/ False
Use one of the intersecting functions in <http://www.mathworks.com/matlabcentral/fileexchange/7844-geom2d geom2d> *old* ...

12 years ago | 0

Answered
Problems with MATLAB2014 folder works
First, reset everything restoredefaultpath rehash toolboxcache Does it work now if the function is in the current direc...

12 years ago | 0

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

12 years ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

12 years ago

Answered
Reproducing results of paper gives inaccurate graph
Have you tried using |ode15s| rather than |ode45|? The presence of |log| in your function indicates the function could be stiff...

12 years ago | 1

Answered
Problem using the bvp4c solver. First derivate seems to be constant on the graphic
One thing sticks out: _dydx_ should be a column vector dydx = [y(2); (qmax*x*(x-Lg)/(2*EI))*(1+y(2)^2)^1.5] Otherwise, t...

12 years ago | 0

| accepted

Answered
Concatinating multiple function outputs
If you have a cell array containing your function handles, you could perhaps use |cellfun| to do the work for you: Very simpl...

12 years ago | 1

| accepted

Answered
Advanced use of randi(x) and other random number generating functions
There's nothing builtin do exclude certain numbers. Of course this is accomplished with a little bit of manipulation: x=ra...

12 years ago | 0

| accepted

Answered
Taking unique numbers of a set and order them with their respective number
|unique| will be your friend: angle= [0; 1; 5; 3; 7; 8; 6; 9; 2; 4; 0]; radius= [ 2; 4; 6; 7; 8; 9; 6; 4; 3; 3; 2]; %...

12 years ago | 0

| accepted

Answered
how to calculate the diameter of a vessel
You might find the second part of this webinar helpful: <http://www.mathworks.com/videos/medical-image-processing-with-matlab...

12 years ago | 2

| accepted

Answered
How can I change the default units in GUIDE
In general, you can do this if you were making programmatic UIs. However, GUIDE sets its own defaults that can't be changed to ...

12 years ago | 0

Answered
X-Ray view of CT images
|slice| will allow you to slice your volume any way you like: doc slice

12 years ago | 0

Answered
How does one produce an array of strings automatically?
And a documented one liner: x = strcat('v',cellstr(num2str((1:5).')))

12 years ago | 0

Answered
Cutting a for loop when a certain value is repeated
Sure, pseudocode: xtemp = nan; for ii = 1:1000 x = whatever do stuff if x==xtemp break else ...

12 years ago | 0

Answered
how to calculate Area Under ROC curve generated by NNtool?
If you look at some of the additional syntax to |perfcurve|, it will give you AUC if requested: <http://www.mathworks.com/hel...

12 years ago | 0

Answered
What's wrong with my code for " rename a bunch of files in a folder "
I get this error when the filename is the old filename is the same as the new filename: movefile('A.mat','A.mat') Erro...

12 years ago | 0

Answered
Merge structures with overlapping fieldname
You could do this in R2013a's Statistics Toolbox with the |dataset| class. If your organization is current on SMS, you can upgr...

12 years ago | 0

Answered
alternative command to 'find'
Instead of using an anonymous function, you could write that into its own function file and then only call |find| once, assign t...

12 years ago | 0

Answered
how can I seperate between points id and scatter markers in figure?
So something like this? If not, please clarify. x=[1000;1100;1200]; y=[2000;2100;2200]; points_id={'p100';'p...

12 years ago | 0

Answered
Distribution fitting with a weibull plot.
You could use <http://www.mathworks.com/help/releases/R2014a/stats/fitdist.html#inputarg_distname |fitdist|> or the distribution...

12 years ago | 0

Load more