Answered
Unable to access property editor
See https://www.mathworks.com/matlabcentral/answers/453228-documentation-doesn-t-open-in-new-window-anymore , especially Adam's ...

7 years ago | 0

Answered
How can i drag and drop ?
Matlab does not have the feature for using drag&drop by mouse. But the copyobj command let you copy the contents of one axes int...

7 years ago | 0

Answered
Is there a way to combine number of matrices into one?
If you have 1000 arrays, it would be a really bad idea to store them in different variables, e.g. by hinding an index in the nam...

7 years ago | 1

| accepted

Answered
How to exclude zeros in a matrix?
The cell is the right approach: for i = 1:8 Vyy{i} = nonzeros(data_dic_save.displacements(i).plot_v_ref_formatted); ...

7 years ago | 2

| accepted

Answered
HELP! Bisection method fails to found zero
Simply use the debugger to test, what's going on: https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-feat...

7 years ago | 1

| accepted

Answered
Alternative to for loop i.e. recursion
Inlined dec2bin(0:2^p-1): M = rem(floor((0:2^p-1).' .* 2 .^ (1-p:0)), 2) Another solution: M = zeros(2^p, p, 'uint8'); n1 =...

7 years ago | 3

Answered
imagesc - size of figure changes content
It does not just look like there is an interpolation, when you resize the image, but of course there is in fact an interpolation...

7 years ago | 0

Question


Interpolation method of IMAGE
When the size of the data displayed by the image command differs from the number of pixels used on the screen, the data must be ...

7 years ago | 2 answers | 0

2

answers

Answered
How to add thumbnail to a .fig file in Windows 10?
The approach to use the thumbnail of the image in the Windows Explorer is rather indirect. This is not the purpose of the Window...

7 years ago | 0

| accepted

Answered
Could you please correct my program for single variable but different size and many outputs.
A{1} = '9/027B/029B/02C1/0245/0335/01A8/0365/0110/0335/00D5/0323/00B3/034E/0038/0359/-FFC3/032' A{2} = '023C/031C/0286/02CA/02A...

7 years ago | 0

Answered
What is the difference between Micro and Macro?
This is the perfect question for your teacher. Remember that we cannot read his or her mind and that she or he is payed for givi...

7 years ago | 0

Answered
How to make a smooth image using the "patch" function ? (and not crenellated)
If you want to export the image as vector graphics, use the 'Painters' renderer. For 3D graphics with transparencies the OpenGL ...

7 years ago | 0

| accepted

Answered
why a is function call from within a function much much slower than not doing it in a function.
This is not a problem, but it shows that Matlab's JIT acceleration works powerful. With the inlined code it seems to recognize, ...

7 years ago | 2

| accepted

Answered
mex file only found when in working directory, but not when in search path
The message "The specified module could not be found" means, that the mex function cannot find a required library, most likely...

7 years ago | 3

Answered
heun mthod 1st order ode
"Using intervals of delta t=1" does not mean h = 0.1; t = 0:h:100; but h=1. Then the 2nd question is easy: [value, index] =...

7 years ago | 2

| accepted

Answered
Ignoring when indexing value positions are invalid
"when o = 24, it will only take the 24 first indces into account" for k = 1:length(mBall) if mBall(k, 4:5) == 0 ...

7 years ago | 0

Answered
how to have a variable axis in matlab
Do not change only the XTicks, but adjust the X-values also: x = [1, 2, 3, 4, 5, 5.1, 5.2, 5.3, 5.4, 5.5] y = rand(size(x)); ...

7 years ago | 0

Answered
memory leaks (simple coding to complex ones)
"The code is clean" - no, it is not clean. You are using the evil eval, which is a desaster for efficient code. Creating variabl...

7 years ago | 0

Answered
Speeding up IF and comparisons whithin a loop
Do not take the output of the profiler too literally. If this is the first access to the value of X, it might be the time for co...

7 years ago | 0

| accepted

Answered
how can i solve this ,can anyone provide me with code? whats wrong with my code ?
function valid = valid_date(year, month, day) % scalar positive integer limit if isscalar(year...

7 years ago | 10

Answered
Circshift matrix by different amount without for loop
Try: n = 8192; spectrums = rand(512, n, 22); shifts = randi(n, 1, 22); tic s1 = cell2mat(arrayfun(@(k) ... ...

7 years ago | 2

Answered
How to count the lines crossing the y axis?
If you want to identify if a line crosses the y axis, check if the x component of the start point has another sign than the end ...

7 years ago | 0

Answered
Storing arrays in a matrix
n = 100; % store 100 vectors Result = zeros(n, 3); % reserve memory for n [1x3] vectors for k = 1:100 v = ...

7 years ago | 3

| accepted

Answered
Create a backup of your preferences folder
General rule: All data without a regular backup are not important.

7 years ago | 2

| accepted

Question


Create a backup of your preferences folder
Dear readers, After reading e.g. Answers: Help window invisible (link) I want to suggest: Create a backup of ...

7 years ago | 1 answer | 3

1

answer

Answered
documentation doesn't open in new window anymore
This has happend on my computer also after the preferences files have been corrupted. Re-create the preferences folder from your...

7 years ago | 1

Answered
Anyone know if there is any direction regarding the following error?
The error message is clear: "HHP" is not recognized as a function or variable. If we assume, that it is a function, did you incl...

7 years ago | 0

Answered
Parsing Text File with Matlab
Are you sure you want to use char(13) as linebreak? While the DOS line breaks char([10,13]) are used e.g. by the old version of ...

7 years ago | 0

Answered
what does the command A(:,x) means
Please read the "Getting Stared" chapters of the documentation and use Matlab's OnRamp to learn the basics: https://matlabacadem...

7 years ago | 0

| accepted

Answered
Increase the Efficiency of Plotting G-code
Why do you assume, that the plotting consumes more time than the reading of the file? regexp((v{1}),'LAYER:*') is much slower t...

7 years ago | 0

| accepted

Load more