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

mehr als 12 Jahre vor | 3

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

Mehr laden