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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 1

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Cyclic reading in a vector
vector = [vector(end); vector; vector(1)]; for n = 2:x+1 ... end would work.

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 1

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

Réponse apportée
How do I interpolate 3 variables to create a scatter plot?
doc interp2

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
change x-axis in figure
doc xlim

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 1

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 2

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to overlay a png image over an imagesc?
doc AlphaData

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 1

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

plus de 9 ans il y a | 0

Charger plus