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

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
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)

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 1

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 1

Réponse apportée
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? ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

A résolu


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

plus de 12 ans il y a

A résolu


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

plus de 12 ans il y a

Réponse apportée
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...

plus de 12 ans il y a | 1

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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]; %...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
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 ...

plus de 12 ans il y a | 0

Réponse apportée
X-Ray view of CT images
|slice| will allow you to slice your volume any way you like: doc slice

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

Réponse apportée
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 ...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 0

Charger plus