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

mehr als 9 Jahre vor | 2

| akzeptiert

Beantwortet
Perofrming statistics over non-zero elements of mXn array
array( array == 0 ) = NaN; nanmean( array )

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 1

| akzeptiert

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
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 );

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 1

| akzeptiert

Beantwortet
Issue using ScrollPanel function not plotting all axes
Try setting hFig.Renderer = 'painters'; where hFig is your figure handle.

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 1

Beantwortet
Set date limits into x-axis
doc xlim What is wrong with just using this to set the limits?

mehr als 9 Jahre vor | 0

Gelöst


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

mehr als 9 Jahre vor

Beantwortet
"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...

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

Beantwortet
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

mehr als 9 Jahre vor | 1

Beantwortet
finding and changing values in matrix that satisfies 2 conditions
idx = find( A > 0 ); idx = idx(2:2:end); B = A B(idx) = 100;

mehr als 9 Jahre vor | 1

| akzeptiert

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 0

Beantwortet
Average curve of 150000x7 matrix
doc mean The second argument allows you to specify the dimension along which the mean is calculated

mehr als 9 Jahre vor | 0

Beantwortet
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, '--' )

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
Replace values in a matrix below 1% and above 99%
lowPercentileVal = prctile( myMatrix(:), 1 ); myMatrix( myMatrix < lowPercentileVal ) = lowPercentileVal; highPercentile...

mehr als 9 Jahre vor | 1

| akzeptiert

Beantwortet
How to index this structure
[~,matchingIdx] = ismember( [file.Position], 100:150 ); or [~,matchingIdx] = ismember( 100:150, [file.Position] ); ...

mehr als 9 Jahre vor | 1

| akzeptiert

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

Mehr laden