Answered
My if x ~= y statement is not working
Never compare floating point numbers with == or ~= Floats are not 100% accurate so you will run into these kinds of confusion...

9 years ago | 1

Answered
what does the "t" mean?
I assume it is just a typo and should say 'x and y'. Which version of Matlab are you using? The R2016b help doesn't mention 't...

9 years ago | 1

Answered
Why Isn’t One of Plots Shown?
You need to use hold( hax1, 'on' ) Every axes-related instruction you give should be to an explicit axes handle. Never ...

9 years ago | 0

| accepted

Answered
How can I pick the peak of different storm event ?
doc findpeaks if you have the Signal Processing Toolbox. You should be able to use one or more of the constraints on min p...

9 years ago | 0

Answered
how to find the closest value in in an array for a set of values
e.g., using just inputs: QTcProb = rand(2,100); COQTcsample1 = [0.2, 0.3, 0.5, 0.7, 0.9]; diffs = QTcProb(1,:) - CO...

9 years ago | 0

| accepted

Answered
How to cut digits after the decimal point?
a2 = round( a1, 1 ); if you have a sufficiently recent version of Matlab. I can't remember when this functionality was add...

9 years ago | 0

Answered
How to Define a Default Input Argument for a Function?
function someFunc( someInput ) narginchk( 0, 1 ) if ~exist( 'someInput', 'var' ) someInput = 7; end ...

9 years ago | 0

| accepted

Answered
I need some help in matlab
<http://matlab.wikia.com/wiki/FAQ#Can_you_program_up_the_algorithm_in_this_article_for_me_and_explain_it_to_me.3F>

9 years ago | 0

Answered
How to concatenate string array to matrix?
stringArray = {'A','B','C'}; B = eye(3); result = [num2cell(B) stringArray']; is the best you can do, resulting ...

9 years ago | 0

Answered
Convolutions and kernals to .jpg
doc conv2 doc norm

9 years ago | 0

Answered
Calling a GUI from another GUI. Problem with output variable being overwritten.
Judging from what you are saying and the symptoms, without seeing the whole code, I suspect you are missing a guidata( hObj...

9 years ago | 1

| accepted

Answered
MATLAB GUI Check button and wave bands representation
Use doc uibuttongroup with radio buttons instead. This handles all the mutual exclusivity for you as it is the purpose ...

9 years ago | 0

Answered
Image axis label reshape
If you use the imagesc( hAxes, x, y, C ) form of plotting the image then you can tell it what the x range and y range of...

9 years ago | 0

Answered
How to compare column A and B and give corresponding output for input provided
doc ismember should do the job, using the 2nd output argument to give you the index to apply to the other array/column/what...

9 years ago | 0

Answered
Programatically (i.e. not using guide) accessing an edit box in another function
There are a few options, including # Make IntegratedIntensity a nested function so it has access to the main function workspa...

9 years ago | 0

| accepted

Answered
Hovering on an Graphics Object
As a rough guide: axesPos = getpixelposition( hax ); rectXPos = [1 2] / 4 * axesPos(3) + axesPos(1); rectYPos = [1 2]...

9 years ago | 0

| accepted

Answered
I want to use 5*5 filter mask on my image in order to detect edges but my image is 3*3 how can i make my image 5*5? Please help me
Why are you extracting a 3x3 subset of your image in the first place if you have a 5x5 filter? I would assume you need G...

9 years ago | 0

| accepted

Answered
I have to retrieve characters from a string array at particular index of array
substring does not exist as a function in my version of Matlab (Matlab R2016b) so the error message is correct in that case.

9 years ago | 0

Answered
Display string and variables
doc fprintf

9 years ago | 0

Answered
How to identify variables in workspace from strings in cell arrays and then make changes to the variables themselves?
<https://uk.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval> The reaso...

9 years ago | 1

| accepted

Answered
Error that makes no sense at all
What is the result of which histogram -all ? At a guess you have probably created your own function with that name

9 years ago | 1

Answered
adding property dynamically in the class
doc dynamicprops gives details on the addprops function which I would assume you need to use. I have never wanted to do an...

9 years ago | 0

Answered
how to tick out several types in one graph
doc XTick doc XTickLabel

9 years ago | 0

| accepted

Answered
Problem with axes and animatedline
The problem here is not with the animated line plotting it is what you post at the top - that your axes no longer exist. That i...

9 years ago | 0

Answered
How to define data input in an elegant way?
Grouping data together like that is certainly far better than hundreds of individual variables. I tend to use classes myself,...

9 years ago | 0

Answered
Create sub-tabs inside main tabs ('Parent' property problem)
You just need to give the parent tab e.g. AppSubTab = uitab(Subtabgp,'Title','App','Parent', MainTabs.MainTab1 ); If you...

9 years ago | 0

Answered
How to take average/median of table columns without the zeros?
pm2d( a ) ./ sum( logical( pm2d ) ); will give you the mean without taking zeros into account. If you have a recent vers...

9 years ago | 0

| accepted

Answered
How many allowable activations per Matlab Licence
From my experience you can have your license activated on two computers at the same time, assuming it is not a node-locked licen...

9 years ago | 0

Answered
can I use multiple cores of my CPU?
You can launch as many instances of Matlab as you like (on Windows at least, I don't know about Apple) as far as I am aware (wel...

9 years ago | 0

Answered
how to apply FIR filter on an image?
doc hilbert

9 years ago | 0

| accepted

Load more