Answered
how do I write this function on matlab ?
v = sqrt(v_x ^ 2 + v_y ^ 2) % [EDITED] Typo fixed theta = atan(v_x / v_y) Looks like a straight forward conversion...

9 years ago | 0

Answered
Error: Missing dependent shared libraries: 'maplec.dll' required
During the Maple install there was a message that said something about MATLAB being 32 bit instead of 64 (which is false), bu...

9 years ago | 0

Answered
readtable does not allow 'Format' option
If you import an XLSX file the format is specified by the contents of the Excel file. The format specification works for text fi...

9 years ago | 1

Answered
Matlab 2017b plotting error.
This is not the expected behavior. It is strange, that the parent of the axes is a |matlab.graphics.GraphicsPlaceholder| and not...

9 years ago | 0

| accepted

Answered
How to convert string to variable name ?
This question is an evergreen. The solution is easy: *Don't do this*. It is a shot in your knee. See: * <https://www.mathw...

9 years ago | 10

| accepted

Answered
Change behavior of automatically creating file when file does not exists
This is not possible with the |edit| command. I would not modify the |edit| command. Better write your own function, which do...

9 years ago | 1

Answered
How should I deal with this error? error using allchild.
Whenever Matlab shows an unexpected behavior, it is time to use the debugger to examine what's going on: <https://www.mathworks....

9 years ago | 0

Answered
avoid loop in this funcion
The loop is no problem, only the missing pre-allocation is. A cleaner version: function s = shuffle(x) s = reshape(x, ...

9 years ago | 0

Answered
Is it possible to write a double data matrix into TIFF images ( Movie)?
This will work with |imwrite|. Data = load('Aniso.mat'); A = Data.A; imwrite(A(:, :, 1), 'test.tiff'); for k = ...

9 years ago | 0

Answered
For loop with multiple variables
If you want this: Java: for (int i = 1, j = 0; i <= limit; i++, j++) in Matlab: j = 0; for i = 1:limit j = ...

9 years ago | 2

| accepted

Answered
File Exchange and Add-On Explorer
You forgot to mention, where you look for this function. You can download the functions as ZIP file or as Toolbox. Do you select...

9 years ago | 0

Answered
how to vectorize this code?
Note that "elseif(a<k<b)" will not do what you expect. The condition is evaluated from left to right: At first "a<k", which repl...

9 years ago | 1

Answered
How to multiply a 4x4 array each, member of which is a 3x1 column vector, by 4x1 vector?
A "matrix", which contains vectors as elements, is a 3D array. P_00 = reshape([2; 0; 0], 1, 1, 3); ... Then you ca...

9 years ago | 1

Answered
How to distribute points uniformly through the grid of multiple hexagons?
You can do this for each hexagon: # Get the coordinates of the surrounding square (not rectangle) with the side length L. # ...

9 years ago | 0

| accepted

Answered
What is the difference between inner join and join?
For a |join| both tables requires the same variables. For an |innerjoin| the overlapping variables are chosen. A look into th...

9 years ago | 3

| accepted

Answered
Modifying a memory-mapped data file
Under Windows you can use <https://www.mathworks.com/matlabcentral/fileexchange/24671-filetime> to set the modification date man...

9 years ago | 0

Answered
VideoReader command windows 7
The error message is clear: obj = VideoReader(‘D:\TEMP\newvideo10seco.mp4’) | Error: The input char...

9 years ago | 0

Answered
How do I set every other number in an array to a specific number with one line?
See Stephen's answer, if you need the checkerboard distribution for an odd number of elements only. If the matrix can have even ...

9 years ago | 0

Answered
how to print a web page automatically
See e.g. <http://gavinballard.com/automatically-converting-html-to-pdf-on-mac/> : At <https://github.com/scottgarner/URL2PDF> yo...

9 years ago | 0

Answered
Adding a legend from a loop into one element
I'm not sure, but maybe this helps: L = legend(p4, {'p4'},'location','Best'); L.ItemHitFcn = {@hitcallback_ex, p4}; ...

9 years ago | 0

Answered
How can I add more tick marks between my x-axis labels?
hINT = histogram(Zint(:,2), 'BinWidth', 0.5) title('Histogram Interface') xlim([0 80]) ax = hINT.Parent; % Importan...

9 years ago | 1

| accepted

Answered
i want to access this boundaries{1,1} from this cell and to be stored in a normal array for plotting into an image?
Do you mean: data = boundaries {1, 1} ? If not, what have you tried so far? What is the actual problem? How do you want ...

9 years ago | 0

Answered
Figure title is covered - Ubuntu
Reduce the font size or the size of the axes. This does not concern Linux, but it is the expected behavior under Matlab.

9 years ago | 0

| accepted

Answered
How can i set GUIDE gui in a specific location having 2 screens?
See <https://www.mathworks.com/matlabcentral/answers/16663-is-it-possible-to-viewing-the-figure-window-on-second-display>. The f...

9 years ago | 0

| accepted

Answered
It doesn't count right
alpha=0,0039; beta=0,022; Matlab uses the dot as decimal separator. So you have to change this to alpha = 0.0039; ...

9 years ago | 1

Answered
Undefined variable "X" or class "X".
You have asked this some days ago already: <https://www.mathworks.com/matlabcentral/answers/375923-implement-to-predict-japanese...

9 years ago | 0

Answered
Why does improfile produce noisy plots?
I'm not sure if I understand your question completely. The documentation is the best source of information: https://www.mathw...

9 years ago | 0

Answered
How do I calculate the mean entry value of multiple 3d matrices, excluding NaN/0?
If you have your matrices in a cell array instead using indices hidden in the name of the variables, the solution would be easie...

9 years ago | 0

| accepted

Answered
Aggregation by index in first column
Ah, I get it now. So the actual problem is to convert days = [1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 1 1 1 1] to days = [1 1...

9 years ago | 1

Answered
How can I convert a m x n matrix to a 1 x n matrix in matlab?
While you can "concatenate" A = [1,2,3; ... 4,6,7; ... 6,1,8] to B = [123; ... 467; ... ...

9 years ago | 0

Load more