Answered
how to change the font size in a plot (only for the axes numbers)?
If you search for 'tick labels' or something similar, in the file exchange there are numerous options that replace the tick labe...

12 years ago | 0

Answered
How can I make struct with existing variables?
myStruct.alfa = alfa; myStruct.beta = beta; etc. Or myStruct = struct( 'alfa', alfa, 'beta', beta );

12 years ago | 0

Answered
How is a try catch block evaluated?
It is evaluated at runtime. There is no compilation in Matlab so most things are done at runtime (excluding Mex compilation and...

12 years ago | 0

Answered
Position of text objects ?
Use hText = text(x,y,name) instead. That will give you an array of handles for each text object. You can then call e...

12 years ago | 0

| accepted

Answered
Interface C++ program to MATLAB
You would need to have a mex wrapper calling your front end function from your C++ dll, then return a boolean from that mex func...

12 years ago | 0

Answered
Why the trigonometry results are different
tan is asymptotic at 90 degrees, but pi/2 will not evaluate to the precise equivalent with a numerical estimate of pi so its res...

12 years ago | 0

Answered
Using interp to plot
interp2 should do what you want.

12 years ago | 1

| accepted

Answered
Does this formula wrote in correct way in the matlab
Looks like it. Does it give the correct answers for given inputs? If so then it is ,assuming you test edge cases.

12 years ago | 0

Answered
matrix operatios to convert two vectors into a matrix
[Ygrid, Xgrid] = meshgrid( Y, X ); Z = arrayfun( @(X,Y) [X Y], Xgrid, Ygrid, 'UniformOutput', false ); should give you a...

12 years ago | 2

| accepted

Answered
strange behavior of function leading to complex numbers
If you call xData <= x(1) when xData is a vector you will get a vector of results of the same length. You need to use...

12 years ago | 0

Answered
large array distance calculation
i = 3; min( sqrt( sum( bsxfun( @minus, M(i,1:3), M(M(:,4) == 0,1:3) ).^2, 2 ) ) ); I think that could be part of a solut...

12 years ago | 0

Answered
statistics toolbox 9.0,plz help!
You'd have to contact Mathworks and obtain a license

12 years ago | 0

Answered
Use of break in if?
If you want to break _after_ the first If ends then you won't be in the If to place your break/continue. And if you were able t...

12 years ago | 1

| accepted

Answered
Resizing a small matrix to a larger one
griddedInterpolant would do the job of regridding. If you don't want to lose data though you will, as you say, need to exp...

12 years ago | 0

Answered
Trouble plotting multiple graphs
Well, the plots are negative because the result data is. (-A.^2+A-1/3).*theta ranges from -0.3785 to 0.4050. 0.5*A....

12 years ago | 0

Answered
Scatter plot prevents update of contour plot. Any ideas why?
I'm not sure why changing x min to 700 would cause it to be slower than 500 (when I plot the raw data without the GUI part it do...

12 years ago | 1

Answered
Mean of parts of an array
Try putting your 8, 12, 13, 17 in square brackets as MeanVariable2 = mean(MeanOfSegments( [8,12,13,17] ));

12 years ago | 0

| accepted

Answered
How can I get the max of the values of an array with Numeric Type "double"?
max(a) should work unless you have accidentally overwritten max by using it as a variable name. In that case it would try to us...

12 years ago | 0

| accepted

Answered
Why imline do not work in exe "compiled gui"??
Are you calling it as lower case rather than 'Imline'? Also is it in the list files that were compiled into your executable?

12 years ago | 0

Answered
How to convert a volume image to binary?
binaryVolume = logical( volume );

12 years ago | 0

| accepted

Answered
MATLAB functions and subfunctions
If you just want to have a look at them then put breakpoints in the file containing your main function and you can see the inter...

12 years ago | 0

| accepted

Answered
Function call problem. How to solve it?
result = sliceobject(im); should work fine. Occasionally I find that my workspace doesn't refresh itself so I press F5 o...

12 years ago | 0

Question


Creating an array of given size and increment
This seems like a stupid question from someone with 8 years Matlab experience, but either I'm having a brain fade moment or ther...

12 years ago | 2 answers | 2

2

answers

Answered
"While gcbo" command on guitar tuner
Seems to do exactly like you said. If you just use while true for an infinite loop the closing of the GUI by the user w...

12 years ago | 1

| accepted

Answered
On dependent properties: Is this poor Object Oriented Programming?
I would usually use the idea of a protected function that extends the base class. So the base class function is of the type: ...

12 years ago | 0

| accepted

Answered
infinite loop problem in gui
<http://www.mathworks.co.uk/help/matlab/creating_guis/callback-sequencing-and-interruption.html> should help. It's not somet...

12 years ago | 0

Answered
Using values from an array as titles in generated figures
I suspect you just need something like eval( current_var ) but I never use eval so I'm not 100% sure that is the correct...

12 years ago | 0

Answered
how to change figure properties?
xlabel is a property of the axes, not the figure (I assume that is enough for you to solve the problem, if not I can expand i...

12 years ago | 0

| accepted

Answered
Append new column considering the distribution of the elemnts in a column
A(p5Val1< [A{:,3}] & [A{:,3}] <= p10Val1, end ) = {1} You can't use 0 < x < 1 type maths in a Matlab expression, you have ...

12 years ago | 1

| accepted

Answered
Easy for loop question
i - 1 will be 0 in the first pass through the loop. Indices must be positive integers, i.e. 1 or greater. Matlab indexes...

12 years ago | 1

| accepted

Load more