Respondida
How to repair GUI Elements out of view inside panels?
View -> Object Browser from the GUIDE menu gives you access to all components, whether visible or not. You can double click ...

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

Respondida
change x-axis in figure
doc xlim

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

Cargar más