Réponse apportée
help with horzcat error
As the error says, the dimensions of the arrays you are trying to concatenate are not equal. At a guess, since you are doing di...

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 1

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

environ 9 ans il y a | 1

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

Réponse apportée
Convolutions and kernals to .jpg
doc conv2 doc norm

environ 9 ans il y a | 0

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

environ 9 ans il y a | 1

| A accepté

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

Réponse apportée
Display string and variables
doc fprintf

environ 9 ans il y a | 0

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

environ 9 ans il y a | 1

| A accepté

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

environ 9 ans il y a | 1

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

environ 9 ans il y a | 0

Réponse apportée
how to tick out several types in one graph
doc XTick doc XTickLabel

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

| A accepté

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

environ 9 ans il y a | 0

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

environ 9 ans il y a | 0

Charger plus