Answered
Problem in resizing the image
At a guess, given the tell-tale factor of 3 difference, I would say this is because it is saved as a true RGB image and it has 3...

9 years ago | 0

| accepted

Answered
Why two equal numbers are not equal?
You should never test equality between floating point numbers. There are any number of places you could search online to see th...

9 years ago | 1

| accepted

Answered
How do I create variable names based on string values in an excel workbook and assign values to each variable with data in the workbook
Just use struct fields instead. This is ghastly to do with variables, but you can create a struct field from a string easily, e...

9 years ago | 0

| accepted

Answered
Cyclic reading in a vector
vector = [vector(end); vector; vector(1)]; for n = 2:x+1 ... end would work.

9 years ago | 0

| accepted

Answered
The Code Runs Too Long, Should I Abort It?
Can't you just replace the whole thing with: t = c3 > e; or t = double( c3 > e ); if you want the 0s and 1s as d...

9 years ago | 0

| accepted

Answered
x-axis and y- axis problem
doc xlim doc ylim xlim( hAxes, [-8 10] ) etc, for an axes handle hAxes. Or just xlim( [-8 10] ) if you wan...

9 years ago | 0

| accepted

Answered
How to define an array with fractional index number in MATLAB?
'have to' for what purpose? Use doc containers.Map if you want to set up a finite lookup table of results to index in...

9 years ago | 0

Answered
Help explain a code
<https://uk.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html> The @ syntax is used for variable input arguments...

9 years ago | 0

| accepted

Answered
How to select data from figure with predefned window?
doc CData If you don't have the data that defined the image then you can get it from the image handle as this property. T...

9 years ago | 0

Answered
Merging two wav files different lengths
doc interp1 if you need them the same length, but still covering the same time span. If you gave Signal Processing Toolbox...

9 years ago | 0

Answered
Passing extra input parameters for creation function in ga
I don't really know enough about the GA process in Matlab, but generally speaking, what you have is a function of 3 variables, b...

9 years ago | 1

Answered
How to apply tranparency in some parts of figure
'FaceAlpha', alphaVal is the property, value pair you want for a patch. I don't know m_map, but m_gshhs_h ('patc...

9 years ago | 0

| accepted

Answered
How to find the latest peak value of a curve.
If you have the Signal Processing Toolbox just use findpeaks, if not since you only want the last peak even a simple loop runnin...

9 years ago | 0

Answered
GUI Calculator- clearing the display after an answer is given
You could just set a flag after the equals button is pressed and then test this flag only when you press a number button afterwa...

9 years ago | 0

| accepted

Answered
Plot with a imaginary input
You probably just want to use abs( V ) i.e. hp1 = pcolor(X,Y,abs(V));

9 years ago | 0

Answered
How do I interpolate 3 variables to create a scatter plot?
doc interp2

9 years ago | 0

| accepted

Answered
change x-axis in figure
doc xlim

9 years ago | 0

| accepted

Answered
why are values returned by xcorr not within [-1,1]?
Use the 'scaleopt' option as documented in the help if you want normalised results. Otherwise the results will depend on the ma...

9 years ago | 0

| accepted

Answered
How to subtract from a vector a three dimentional matrix
for example: a = ones( 3, 2, 12 ); v = linspace( 0, 1, 12 ); res = reshape( bsxfun( @minus, reshape( a, [], 12 ), v )...

9 years ago | 0

| accepted

Answered
How to write correct signature for callback function which includes handles structure?
@(src,evt) display_frame( src,evt,handles.edit3 ) should work as the call. function display_frame(obj,event,hEditbox) ...

9 years ago | 0

| accepted

Answered
Compare all elements of a vector against each other
relativeDiffs = abs( ( v - v' ) ) ./ v; % R2016b syntax only indicatorMatrix = relativeDiffs <= 0.1; will give you ...

9 years ago | 1

| accepted

Answered
How to remove "+" sign of package directory (SVN commit problem)
In general you can easily remove a package by simply removing all references to the package prepended to its classes and functio...

9 years ago | 0

| accepted

Answered
Does Matlab wait for the execution of a function in a while loop?
Unless you are kicking it off in a new thread using some form of parallel processing then code will run sequentially and will on...

9 years ago | 0

Answered
How can I create a collapsible uiPanel in Matlab?
<http://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox> (R2014b or later) <http://uk.mathworks.com/matlab...

9 years ago | 2

| accepted

Answered
What does this mean? what is exactly the type Root? >>Error:Handles of type Root cannot be made the current Axes.
Why are you trying to assign 0 as an axes? You already had an axes there in GUIDE I assume, judging by the name and the fact yo...

9 years ago | 0

| accepted

Answered
Is it possible to overlay a png image over an imagesc?
doc AlphaData

9 years ago | 0

| accepted

Answered
Interpolation of a non monotonic function
You should just be able to loop around all your (x,y) points in pairs and interpolate between them to whatever degree of enhance...

9 years ago | 0

Answered
plz need a help (I developed a GUI programmatically but I cant change the string in the pushbutton by the popumenu? )
'handles' is not being passed to your callback. This is something that comes with GUIDE, but not in a programmatic GUI unless y...

9 years ago | 1

Answered
Deleting individual plots from a figure
The plot function returns an argument that is a handle to the plotted object. Use this and just call delete on it. i.e. h...

9 years ago | 0

Answered
Undefined function or variable 'case1' each time I start Matab and run the file
In the 'Set Path' dialog from the top ribbon there is a 'Save' option which should save for future sessions. I don't really und...

9 years ago | 0

Load more