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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 1

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

etwa 9 Jahre vor | 1

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

Beantwortet
Convolutions and kernals to .jpg
doc conv2 doc norm

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 1

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

Beantwortet
Display string and variables
doc fprintf

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 1

| akzeptiert

Beantwortet
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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

Mehr laden