Answered
Not Enough Input Arguments
The message means, that xPos is not defined. I guess, that you forgot to provide input arguments to your function. Maybe you hav...

7 years ago | 0

Submitted


GetMD5
Get MD5 of files or arrays as fast C-Mex

7 years ago | 7948 downloads |

4.7 / 5
Thumbnail

Answered
How to make this figure more simple with 'for'
Remember that the readers can read the question only, but not your mind. I cannot guess, what you want to divide into what. The ...

7 years ago | 0

Answered
Can anyone give me the full coding for creating this graphical user interface
Seriously? You are asking for a full code to create a similar type of GUI? This means, that an answer needs a lot of guessing of...

7 years ago | 0

Answered
Update of FileExchange submissions
The update of a FileExchange submission breaks after pressing the "Publish" button in Firefox. In the Internet Explorer the "Pu...

7 years ago | 0

| accepted

Answered
am getting a error "Error using == Matrix dimensions must agree."
If this is the failing line: tumor_label = find(area == max_area); check the sizes: size(area) size(max_area) What do you o...

7 years ago | 0

Answered
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
You can check this by your own. Insert these lines: size(tbtraindata{i,1}(index,1,1,deepth)) size(trainclass{i}(k,:)) % bef...

7 years ago | 0

Question


Update of FileExchange submissions
I try to update one of my submissions in the FileExchange. With Firefox (current version, Win10/64) I can select the new file et...

7 years ago | 1 answer | 0

1

answer

Answered
how can I read in this file of varying data types
One way - old-fashioned without textscan: % UNTESTED!!! Written in the forum's interface without testing [fid, msg] = fopen('e...

7 years ago | 0

Answered
How can I average the first 14 columns, the second 14 columns, and so on and so forth?
Reshape the data to blocks of the wanted width and calculate the average by mean or sum(X)/Width. Then append the mean over the ...

7 years ago | 1

Answered
could anyone help me to solve the issue
'[.4 .5 .6]' is not a valid color definition. Define it as numerical vector - without quotes: cluster_colors = {'m', 'g', 'y', ...

7 years ago | 0

| accepted

Answered
A more modern but still flexible equivalent evalin and eval?
This is an "army knife" with all tools fold out at the same time. Of course eval is powerful, but this is a drawback of this fun...

7 years ago | 1

Answered
Why does the "subplot" function reserve so much whitespace?
You find many solutions for modified subplot positions in the FileExchange: https://www.mathworks.com/matlabcentral/fileexchang...

7 years ago | 1

Answered
How to loop through an unknown number of matrix dimensions?
You can use linear indexing, if you want to operate on all elements: X = rand(2,3,4); Y = zeros(size(X)); for k = 1:numel(X) ...

7 years ago | 3

| accepted

Answered
Looping through a matrix of unknown dimensions
What about reshaping the array? start_matrix = rand(5,6,7,8,1000); s = size(start_matrix); M = reshape(...

7 years ago | 2

| accepted

Answered
no:of frames showing zero!
It looks like Matlab cannot access the AVI files, because it cannot work with the Codecs. See https://www.mathworks.com/help/mat...

7 years ago | 0

Answered
Loop in vector of cells
Maybe: A = {[1,2,3,4,5], [11,22,33,44,55]}; B = cellfun(@(x) x(2:end), A, 'UniformOutput', false) Or with a loop: B = cell(s...

7 years ago | 0

Answered
TIF image being displayed incorrectly
uint8 converts all values above 255 to 255. So use: rgb = im2uint8(cat(3, red, green, blue)); which scales the data accordingl...

7 years ago | 0

Answered
Is there a way to embed a callback function to a figure so that a user without said callback function can open the figure and use the function?
Of course the figure is useful only when you provide the callbacks in the function also. If another person should use the callba...

7 years ago | 0

| accepted

Answered
Run a script file multiple times and save variable values to array
What is a "driver file"? "Matlab seems to not let me access the control variable" - what does this mean? What do you observe? Wh...

7 years ago | 1

Answered
How to create a empty binary vector?
A = false(1, 12) This is a logical vector, because there is not binary type in Matlab. A vector cannot be empty and have a cert...

7 years ago | 0

Answered
Increase execution speed of saving using matfile
A MAT file can contain a set of variables and store the data in compressed form. Appending new data to an existing variable is e...

7 years ago | 0

| accepted

Answered
Need to define an array
@Thomas: The problem is still unclear. "the first value is 1000 and the second to last is 100" - this means: R = [1000, repmat...

7 years ago | 0

Answered
How to merge str array with double array?
A = {'21/02'; ... '22/02'; ... '25/02'} B = [2 7 9; ... 5 7 0; ... 3 6 1] C = [A, sprintfc('%d', B)]

7 years ago | 1

| accepted

Answered
Cesar cypher with wrap around for characters
See the mod() function. char_num = double(stringg); enc_num = char_num + shift_amt; enc_num = mod(enc_num - 32...

7 years ago | 0

Answered
Error(s) callback uicontrol in a function
With some bold guessing: function output = f_Auswahlliste_GUI() fh_GUI = figure('position', [50 50 [220 120]*8]); RPLT.Ausw...

7 years ago | 1

Answered
how can i assign a variable existing in the workspace to a char ?
Use a struct and dynamic field names: % In the current workspace: Data.label = 1; Result = YourFunction(Data); function Re...

7 years ago | 0

Answered
Array indices must be positive integers or logical values.
The problem is exactly what the error message says (and not a variable shadowing a built-in function): n = 0 ... while n <= m...

7 years ago | 0

Answered
code is running too long, help me to optimize it
Start with inserting the code in a function, instead of using a script and try to use clear all to kill everything, which might ...

7 years ago | 1

| accepted

Load more