Answered
Dynamic allocation of mxArray structure
Letting an array grow iteratively consumes a lot of resources. Therefore it is a good idea to create the new data in chunks and ...

9 years ago | 0

| accepted

Answered
can I create matrix 3*3 if i<= j make (-1)^i+j else 0
I hope, that this is not a homework. Otherwise it will be harder for you to find a solution by your own. Yes. The most direct...

9 years ago | 0

| accepted

Answered
I have a request set of size [ 1 2 3 4 5 6 7 8 9 10] these request demand some bit rate of size [6 5 6 4 7 3 5 5 4 7] .I want to sort these request according to request that demand most bit rate.
Until now it was not possible to understand your explanations. We have asked you to explain the procedure step by step. Because ...

9 years ago | 0

| accepted

Answered
How to check Number of channels of a sound file and convert stereo file in mono in MATLAB
And a conversion to mono: yMono = sum(y, 2) / size(y, 2);

9 years ago | 6

Answered
Problem setting axes position when using "camva" function
1. When using camva the axes changes its size, but when requesting the new position, it says that the position is the same. ...

9 years ago | 0

Answered
How to save vector columnwise in Excel file
With <https://www.mathworks.com/matlabcentral/fileexchange/15748-excel-column-number-to-column-name>: ExcelFile = fullfile(...

9 years ago | 0

Answered
create soild oblique cylinders and upright cylinder mesh in different positions
axes('NextPlot', 'add'); [X,Y,Z] = cylinder(r,n); Now modify X,Y,Z as wanted, e.g.: surf(X,Y,Z); surf(X + 10,Y,Z...

9 years ago | 0

| accepted

Answered
Replacing mathworks training baseball cap
Contact MathWorks directly. There is no official shop, but if you ask politely, there is the chance that you got it as present. ...

9 years ago | 1

Answered
How can I create a list of ranges and tell the program to verify in which range is my number and pick the inferior limit?
See <https://www.mathworks.com/help/matlab/ref/histcounts.html histcounts>: a = [1,3,6,12,24,35] edge = [0,5,10,15,20...

9 years ago | 0

Answered
Why Can't I build a C++ file using mex?
Does the file contain the mexFunction() ? The error message tells clearly, that it doesn't.

9 years ago | 2

Answered
How can i plot a 3d curve ?
See <https://www.mathworks.com/help/matlab/ref/patch.html patch> and <https://www.mathworks.com/help/matlab/ref/surf.html surf>....

9 years ago | 0

| accepted

Answered
How to update an edit box window continuously by dragging a slider in Matlab GUI?
I'm not convinced that the |addlistener| is not working. Please explain your opinion about "implicit calling of functions", beca...

9 years ago | 2

Answered
how to download matlab 2004, version 2.0
If you have a current license, you can download older versions also. A search in this forum would reveal this directly: <http...

9 years ago | 0

Answered
Matlab DLL 32/64 bit
Are you sure that your Matlab/64 creates a 32-bit DLL? How did you check this? See <https://www.mathworks.com/matlabcentr...

9 years ago | 0

Answered
delete elements from a cell array
S = 'Weather booming Chilli Relax https://t.co/pwp00Ndw3d'; C = strsplit(S, ' '); C(contains(C, '/')) = []; % Or how yo...

9 years ago | 0

Answered
How to get correct values of a(n) from this equation. Attached is my code but it gives wrong values. where n=1...5,
Do not redefine "sum" as a variable, because this shadowing of builtin functions causes troubles frequently. This is a bad ch...

9 years ago | 0

Answered
How to create .mat file?
The relation to CIFAR-10 is unclear. This seems to be a very different task. So please explain if a simple MAT file is sufficien...

9 years ago | 1

Answered
Problem with "Intersect" function
But the shown code works: A = '1,2,3'; B = '1,4,5,6'; C = intersect(A, B); % C = ',1' % The commonly appearing c...

9 years ago | 0

| accepted

Answered
what is the root object?
To post it as an answer, not only as comment: This is explained in the documentation, see <https://www.mathworks.com/help/mat...

9 years ago | 0

Answered
Error using fopen - Not enough input arguments
If fileID = fopen (files.name) shows the error, that it has to few inputs, |files.name| is empty. This means that |dir(n...

9 years ago | 0

Answered
Convert array of comma separated strings in cells to matrix
Arr = { '0,2,3' '1,4,5' '2,6,7'}; Str = sprintf('%s,', Arr{:}); Num = sscanf(Str, '%g,', [3, inf]).';

9 years ago | 7

Answered
kmeans is suddenly behaving differently
This means that you have installed the <https://www.mathworks.com/matlabcentral/fileexchange/2654-netlab FEX: NETLAB toolbox> wr...

9 years ago | 0

| accepted

Answered
meshgrid provides wrong dimensions
Why do you assume that the output is "wrong"? It is exactly how defined in the documentation: [X,Y,Z] = meshgrid(x,y,z) retu...

9 years ago | 1

| accepted

Answered
Optimize RAM cost by only storing upper triangular part of a symmetric matrix?
The memory usage of sparse matrices is explained here: https://www.mathworks.com/matlabcentral/answers/126295-memory-usage-in-sp...

9 years ago | 2

Answered
IS there an alternative way to store data in matlab other than .mat?
Open MAT files by the Matlab: FileData = load('File.mat') Or use the |https://de.mathworks.com/help/matlab/ref/matfile.h...

9 years ago | 0

| accepted

Answered
Hi! I have an issue with the euler function. For some reason I get an error when I try to run it
If this ran on another computer, the function "Euler.m" existed there. It does not exist in the Matlab path of your computer. Th...

9 years ago | 1

| accepted

Answered
textscan error - name-value pair arguments must come in pairs
This line fails: A = textscan(line,'%s','%\t'); What is the prupose of the two parameters? You did not explain them and ...

9 years ago | 0

| accepted

Answered
Add more data and draw a line through the points
Result = zeros(1, 100); for k = 1:100 Result(k) = rand; % or your external function end plot(Result) Or if ...

9 years ago | 0

Answered
How I can get data as separate tables from the cell?
This line fails: A(k) = mydata{1,k}; This means that the right hand side does not have one elements. What is its size? U...

9 years ago | 0

Answered
continues parallel execution of system command in matlab
With .NET under Windows: batFile = 'c:\temp\example.bat'; startInfo = System.Diagnostics.ProcessStartInfo('cmd.exe', ... ...

9 years ago | 1

Load more