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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Respondida
Convolutions and kernals to .jpg
doc conv2 doc norm

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

Respondida
Display string and variables
doc fprintf

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

Respondida
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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

Cargar más