Community Profile

photo

Adam


1.774 total contributions since 2014

Professional Interests: Signal Processing, OOP, Matlab GUI programming, Machine Learning

Adam's Badges

  • 36 Month Streak
  • Thankful Level 2
  • Guiding Light
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Editing component tag in App Designer
You should have a 'Component Browser' (mine is top right of the screen with default layout) with your components in a tree under...

2 dagen ago | 0

Answered
Checking for decimals values in input
validateattributes( r, { 'numeric' }, { 'scalar', 'integer' } )

2 dagen ago | 0

Answered
Reading of Slider into text box GUI
Something like this would do the job, assuming you on;y want to set the text box value when the axes limits are exactly what you...

2 dagen ago | 0

Answered
Accessing elements of a 3-D cell array
myCell{ :, 1, 98 }

3 dagen ago | 0

| accepted

Answered
I want to put an 'ms' in my matlab GUI. But I don't know how to search for the solutions.
sprintf( '%f ms', EncTime * 1000 )

4 dagen ago | 0

| accepted

Answered
matlab.unittest.TestCase availability for Matlab version R2012a
It wasn't introduced until Matlab R2013a so is not available in earlier versions.

4 dagen ago | 0

Answered
Access different elements of matrix
B = A( :, :, :, [2:5, 7] );

4 dagen ago | 0

| accepted

Answered
'disp' equivalent to be used with Matlab Coder
doc fprintf should work with Coder.

9 dagen ago | 1

| accepted

Answered
3D Arrays finding an address in a element
doc ind2sub doc sub2ind will convert between n-dimensional subscripts and linear indices. In Matlab that is. Your declaratio...

11 dagen ago | 1

Answered
How do I change the x and y coordinates in a colormap?
doc imagesc shows that the first two arguments can be the x data and the y data if you use the 3-argument syntax or property-va...

12 dagen ago | 1

Answered
Simplyfing code by removing from script and adding to function
This code is the same in both cases so should definitely go inside a function, though you may wish to pass stroke in as an input...

12 dagen ago | 0

Answered
if statement for colour coding data
Create a mask: greenDataIdx = Depth <= 11.9; plot( Lat( greenDataIdx ), Long( greenDataIdx ), 'g*' ) hold on ... Then plo...

18 dagen ago | 0

| accepted

Answered
How can one remove y-axis ticks on imagesc but keep labels?
hAxes.YAxis.TickLength = [0 0]; Following on from what you said in your own question. That seems to work. Assuming you are in...

22 dagen ago | 1

| accepted

Answered
Error using * Inner matrix dimensions must agree.
Unless you meant matrix multiplication, in which case you likely need to transpose one side of the * then what you need is .* fo...

24 dagen ago | 1

| accepted

Answered
How do I combine these answers into a matrix?
diff(A) will do this.

24 dagen ago | 0

| accepted

Answered
In my gui3 , i want to break loop when i close the gui figure window
isgraphics( handles.figure1 ) will tell you if the figure is still active or has been deleted.

24 dagen ago | 1

Answered
Get handles from GUI img
Add handles.imgRGB = imgRGB guidata(h, handles) in your above function, then if you get handles in your other function you ...

24 dagen ago | 1

| accepted

Answered
Editing colors in a colormap
How do you have your colourmap currently? If you have it as an e.g. 256x3 matrix of colours then you can just set e.g. myColou...

26 dagen ago | 0

Answered
How to change a sign of elements in a matrix for each coulmn separatly ?
vny = v; vny( 2:2:end) = -vny( 2:2:end); should work

26 dagen ago | 2

| accepted

Answered
Mean/average of a variable
M = mean( squeeze( P(a,:,:) ) should give what you want

29 dagen ago | 0

Answered
Use of handle in matlab 2013b
function h = counter persistent x if isempty( x ) x=0; end h=addone; function y=addone x=x+1; y=x; ...

29 dagen ago | 0

Answered
how to return values from .mlapp to the .m caller
An App designer UI is just a class. You can add functions and properties to this however you wish and access these from the sco...

29 dagen ago | 2

| accepted

Answered
MATLAB Answers Wish-list #4 (and bug reports)
One thing I would find useful is some kind of question activity history. This may have been mentioned already in this thread, b...

29 dagen ago | 1

Answered
Print subfunction names to text file
m = methods( 'master' ) will give you the information you need. Then you can tag the class name on the front or whatever else ...

ongeveer een maand ago | 0

| accepted

Answered
How to dynamically update a static text box depending on number of checkboxes selected.
One method: Add this to your OpeningFcn before the guidata call handles.hCheckboxes = [ handles.checkbox1, handles.checkbox2...

ongeveer een maand ago | 0

| accepted

Answered
how to conver double data type into signed binary in matlab?
A = A = [-1.9, 1.7, -9, 12 13 -90 0]' result = sign( A ); will give you -1, 0 or 1 depending on the sign of your data. Here...

ongeveer een maand ago | 0

Answered
Count number of repeated element before next different number in array?
runs = diff( [0 find( diff( A ) ) numel( A )] ) if A(1) == 1 OnesRepeated = runs( 1:2:end ); else OnesRepeated = runs(...

ongeveer een maand ago | 0

Answered
Ηow to properly measure the execution time of a piece of code
doc timeit is the best way to get simple timings from a piece of cide. It deals with running multiple times and averaging as w...

ongeveer een maand ago | 0

Answered
Link corresponding elements of two matrices of the same dimension
I never use tables myself, but something like the following should work fine: t = table( randi(10, 20, 1 ), randi(10, 20, 1 ) )...

ongeveer een maand ago | 0

Answered
Stretch Yaxis to increase gap between data points in scatter plot
Your y position is just specified as being k, which increments in steps of 1. Just change to using something else, e.g. 3*k in:...

ongeveer een maand ago | 0

| accepted

Load more