Réponse apportée
Control figure properties in maineffectsplot
Looks like it is one of those ugly functions that takes it upon itself to create axes and figures, but doesn't return the handle...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
Perofrming statistics over non-zero elements of mXn array
array( array == 0 ) = NaN; nanmean( array )

plus de 9 ans il y a | 0

Réponse apportée
How can I change the tick labels in a colorbar
figure; hAxes = gca; imagesc( hAxes, rand( 25 ) ); hc = colorbar( hAxes ); hc.TickLabels = arrayfun( @num2str, hc.Tic...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Plotting opened data in GUI
You need to take a read of this: <https://uk.mathworks.com/help/matlab/creating_guis/share-data-among-callbacks.html> A GU...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to convert Matlab scatterplot axis to display pixels
Set the XLim and YLim properties of your axes to match the 'Position' property of your axes (doing the obvious maths to go from ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Colour Code Points Based on (x,y) Coordinates
hsvColour = [x * 0.9, y, ones(100,1)]; xyColour = hsv2rgb( hsvColour ); Or some variation on the theme maybe gives a bri...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Logical left shift and truncate bit length
Just throw away the first element of the array e.g. res = dec2bin( bitshift( 135, 1 ) ); res = res( 2:end );

plus de 9 ans il y a | 0

Réponse apportée
How to use imhist() for a part of an image
e.g. imhist( I(200:300, 320:420) )

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Issue using ScrollPanel function not plotting all axes
Try setting hFig.Renderer = 'painters'; where hFig is your figure handle.

plus de 9 ans il y a | 0

Réponse apportée
Why is GUI window closed after push the pushbutton?
clc; close all; clear; Why would you ever put these in a pushbutton callback? close all is what closes your...

plus de 9 ans il y a | 1

Réponse apportée
Set date limits into x-axis
doc xlim What is wrong with just using this to set the limits?

plus de 9 ans il y a | 0

A résolu


Combine the first and last names
MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

plus de 9 ans il y a

Réponse apportée
"Not enough input arguments error"
Surely this is obvious from the error. It tells you exactly what the problem is. You are calling your function with no argumen...

plus de 9 ans il y a | 0

Réponse apportée
Select file issue in Matlab GUI
Declare handles.hImage = []; guidata( hObject, handles ) in your OpeningFcn Then when you plot: handles.hImag...

plus de 9 ans il y a | 0

Réponse apportée
What does it mean when it is said that a struct is a 2-by-3 struct?
It means it is a 2x3 matrix of struct objects - i.e. 6 objects of a struct, arranged in 2 rows and 3 columns

plus de 9 ans il y a | 1

Réponse apportée
finding and changing values in matrix that satisfies 2 conditions
idx = find( A > 0 ); idx = idx(2:2:end); B = A B(idx) = 100;

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Advise on how to structure different classes. I'm OO newbie
Don't have a calculator class inherit from a data class. Either just give public access to what is in the data class, give ac...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Unbalanced or unexpected parenthesis or bracket.
x=[1 4 5 ^ - 8 + 5 4 * -] is not valid code. If you want an array of characters you have to use e.g. '1', '4',...'*' As...

plus de 9 ans il y a | 1

Réponse apportée
Parallel Computing, cores, parfor
Is it necessary for me to have the Parallel Computing Toolbox installed to execut parallel calculating to save time? *Yes* ...

plus de 9 ans il y a | 0

Réponse apportée
How to pass parameters between callback (GUI) in different buttongroup
The reason why ought to be quite simple as you basically said it yourself, you just maybe didn't realise. The buttons are in ...

plus de 9 ans il y a | 1

Réponse apportée
how to convert a table to vectors where each vector takes the name of the column in the table
Why would you need your vectors named that? How are you planning to work with these vectors afterwards given that their names c...

plus de 9 ans il y a | 0

Réponse apportée
Average curve of 150000x7 matrix
doc mean The second argument allows you to specify the dimension along which the mean is calculated

plus de 9 ans il y a | 0

Réponse apportée
how to plot complex signal from i(inphase) q(Quadrature phase) values in matlab?
figure; hAxes = gca; plot( hAxes, I ) hold( hAxes, 'on' ) plot( hAxes, Q, '--' )

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Replace values in a matrix below 1% and above 99%
lowPercentileVal = prctile( myMatrix(:), 1 ); myMatrix( myMatrix < lowPercentileVal ) = lowPercentileVal; highPercentile...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to index this structure
[~,matchingIdx] = ismember( [file.Position], 100:150 ); or [~,matchingIdx] = ismember( 100:150, [file.Position] ); ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How much codegen speed up the performance ? Please give numbers!!!
Matlab compiler creating an executable may have some effects on speed (either faster or slower), but as far as my experience goe...

plus de 9 ans il y a | 0

Réponse apportée
Using a variable value as linear array index
Yes B(C) will use C to index into B, it doesn't multiply at all. Surely you could just try this out on the command li...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Looping Over Cell Array with if statements
if cell{k}(:,6) > percentile(k) is not going to do what you want unless cell{k}(:,6) evaluates to a scalar which I assume i...

plus de 9 ans il y a | 0

Réponse apportée
Problem with arguments in function call - button
When you use this syntax for a callback 'Callback', @VerCallback The callback function will have exactly 2 input argumen...

plus de 9 ans il y a | 0

Réponse apportée
How to plot f(x) =|x| in matlab
doc abs doc plot The rest is trivial. I assume you know how to create a variable. You just need to create one for x an...

plus de 9 ans il y a | 0

Charger plus