Answered
How do I compile a standalone application with external excel files?
If the files are constantly updated, they are not part of the compiled application. Therefore the solution is trivial: You do no...

9 years ago | 1

| accepted

Answered
Subtraction Operation Within Cell Array
Your idea looks fine: for i = 1:length(filenames) output{1, i} = output{1,i} - output{2,1}; end This works sin...

9 years ago | 0

| accepted

Answered
Stuck on this MATLAB question
Start with x = [21855372, 21397898, 21303234, 21849704, 21647943, 21485234, 21825033]; Taking the last 3 digits is the ...

9 years ago | 0

Answered
Genpath is excluding package folders
There is a pile of solutions in the FileExchange: <https://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=...

9 years ago | 0

Answered
Why MATLAB Can't Access My University e-mail Account?
This is the public forum and not the official support of MathWorks. Of course only the official support knows details about the ...

9 years ago | 1

Answered
Matlab Beep at zooming in plot and evaluating variables
The term "recently" is a secure indicator, that you did change something (intentionally / unintentionally / without being awar...

9 years ago | 0

Answered
Netbook recommendations for Matlab
Sorry, Eugene, it is hard to suggest a netbook without posting commercials, which are not accepted here due to the terms of use....

9 years ago | 1

| accepted

Answered
I keep getting the error "Undefined function or variable". What is wrong with this ODE example?
Perhaps the problem is [t,x] = ode('SIR', [0 10], [1000 1 0], options); plot(f,x); % ^ Do you mean: plot(t...

9 years ago | 0

| accepted

Answered
Read inputs from GUI into a second master script
Do not start the function with *saving* the handles, but with *loading* them: % No: % % Save Handles % guidata(hObjec...

9 years ago | 0

Answered
Check which output arguments are requested within a function
You can implement this manually: function Out = myfun(x,y,z, Want) % Want: cell string containing the names of the wante...

9 years ago | 2

Answered
How to make my algorithm work faster
Addressing the field of the table costs time. Because you read only in .Var1 in both tables, you can use a temporary variable ef...

9 years ago | 0

Answered
Can I use MATLAB R2017a product on windows 7 32 bit?
No. R2015b was the last version, which worked under a 32 bit Windows. If you have a R2017a license, you can download and run R20...

9 years ago | 0

Answered
Problem trying to create a variable accessible by all functions
Avoid global variables. Imagine what happens, if you use different GUIs or functions, which use "z" as a global variable: The co...

9 years ago | 0

Answered
Why does OpenGL renderer keep white space around figures when saving?
The EPS export considers the PaperPosition and not the screen dimensions of the figure. Why this is different for OpenGL and Pai...

9 years ago | 1

Answered
I am trying to create a function with Matlab V6.0.0.88 and it is not working.
Matlab v6.0? R12, released in Nov 2000? This is old. Anonymous function have been introduced later. You did not mention, *...

9 years ago | 0

| accepted

Answered
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Perhaps you mean: for e = 1:size(WAV, 1) k = (tss == WAV(e,1)); WAV(e,5) = dir(k); end # size(X,1) i...

9 years ago | 0

| accepted

Answered
Rasterize an alpha shape, export to bitmap
F = getframe(gca); imwrite(F.cdata, 'YourFile.png'); This exports a screenshot of the axes' contents to a PNG file. You ...

9 years ago | 0

Answered
disable ctlr +a for Listbox Gui
No, this cannot work. The effect of Ctrl-A cannot be restricted from the Matlab-level. Please explain, what you want to achie...

9 years ago | 0

Answered
How to draw bunch of line segments?
You can. But what is the wanted result? X1 = rand(1, 10); X2 = rand(1, 10); Y1 = rand(1, 10); Y2 = rand(1, 10); ...

9 years ago | 6

| accepted

Answered
unique of two columns and average of the third column
Prefer to post the data such that the users can copy&paste them without the need of further editing - then posting an answer doe...

9 years ago | 2

| accepted

Answered
The Performance of Simulating Yahtzee
all(rolls(1:4,:) == rolls(2:5,:)) creates a [4 x N] logical matrix, and a [1 x N] logical vector in |all|, while roll...

9 years ago | 0

Answered
pixel bin relation imhist
Try this: Edge = linspace(0,1,256); [N, Edge, Bin] = histcounts(f, Edge); V = (N < (F * max(N))); Mask ...

9 years ago | 0

Answered
Matlab windows and figures not working properly if second monitor is on the left, but perfect if on the right. Bug?
See <https://www.mathworks.com/matlabcentral/answers/352339-matlab-2016b-command-is-black-after-windows-update>: Different solut...

9 years ago | 3

| accepted

Answered
Rare examples of confusing error messages
See <https://www.mathworks.com/matlabcentral/answers/345570-xlswrite-too-large-imput>: A = rand(1393120, 1); xlswrite('T...

9 years ago | 0

Answered
Can a real matrix be considered as an image ?
If you have an arbitrary matrix in double format, scale it to [0, 1] at first: M = rand(640, 480) * 781.3 + 1218.9; % ...

9 years ago | 0

Answered
How can I insert an image when publishing a document?
See <https://www.mathworks.com/help/matlab/matlab_prog/marking-up-matlab-comments-for-publishing.html#btj5juu-1 Markin up matlab...

9 years ago | 0

Answered
Setting time ticks in plot
data = [27634517312999, 1.1111809015274048; ... 27658503234656, 0.7998865246772766; ... 27662988099446, 0.78...

9 years ago | 1

Answered
Strange GUI behaviour : manually setled parameters saved as hard default values...
sometimes, when I ask for strange calculus (for example extreme parameters values for my function), I get a result but when I...

9 years ago | 0

Answered
pixel bin relation imhist
The question is not clear. What are " concerned pixels (their location)" exactly? I assume you want to start with: [coun...

9 years ago | 0

Answered
rowfun for cell variable 2 string conversion in table. Extracting string segment and converting to integer.
It is hard to guess which part of your code is failing, because it is expected to work correctly: test = cell2table({'02-Ju...

9 years ago | 0

| accepted

Load more