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

más de 12 años hace | 3

| aceptada

Respondida
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)

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 1

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

| aceptada

Respondida
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]; %...

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Cargar más