Answered
Converting very large (200 GB) .avi file to mp4 using Matlab
I would strongly recommend using VLC batch convert; https://www.alphr.com/batch-convert-vlc/ VLC's algorithms can do much bett...

3 years ago | 0

Answered
merge multiple csv or xls files with different row and columns
readcell() each file. Carefully concatenate them together newrows = size(NewCell,1); newcols = size(NewCell,2); AllCell(1:newr...

3 years ago | 0

Answered
Interpreting the results of 'fsolve'
You are trying to solve multiple equations simultaneously. fsolve() has found a location that is looking pretty good, but fsolve...

3 years ago | 1

Answered
Error using resample. You must specify the down-sampling parameter Q in conjunction with the up-sampling parameter P.
T = readtable(filename); T will be a table() object. B=T(:,3); When you use () indexing with a table() object, the result is ...

3 years ago | 0

| accepted

Answered
express ODE without set a m file function
func=@(dxdt) [dxdt(2);9.81-0.25/68.1*dxdt(2)*abs(dxdt(2))] However you will have problems when 0 is crossed.

3 years ago | 0

Answered
Attempt to grow array along ambiguous dimension
Suppose you have A = [1 2 3; 4 5 6] which is a 2 x 3 array. Now suppose you assign to A(7) using linear indexing. Should MATL...

3 years ago | 0

Answered
How to asign class name to detection result?
Second output of max() can tell you the index of the most probable class. Then you can use the index to index the class names. ...

3 years ago | 0

Answered
optimize four functions together
gamultiobj

3 years ago | 0

| accepted

Answered
Line of Code works in MATLAB script but not App Developer
You have a variable named diff or a variable named mean

3 years ago | 0

Answered
Read c3d-files into Matlab
see https://www.mathworks.com/matlabcentral/fileexchange/69372-ezc3d and tools listed at https://www.c3d.org/c3dapps.html

3 years ago | 0

Answered
Error using reshape Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate size for that dimension.
Rbin = de2bi(Rdouble); is equivalent to Rbin = de2bi(Rdouble(:)); The size of the output will be numel(Rdouble) by max(ceil(l...

3 years ago | 0

Answered
Slightly separate overlapping lines on categorical variable line plot
You do not have many options: you could convert the categorical y to numeric so that you could add numeric offsets you can use...

3 years ago | 0

Answered
How can I make a variable matrix?
syms U [7 1] for N = 1:7 U(7,1) = U(N); end disp(U) I suspect this is not what you want. I suspect what you want is jus...

3 years ago | 0

Answered
Multiply column by a number
YourTable{:,[7 8 9]} = YourTable{:, [7 8 9]} * 15;

3 years ago | 0

Answered
How to reverse axis in image
transpose if you have intensity data; permute if you have RGB data.

3 years ago | 1

Answered
hello. how I create function?
where is the proper line to creat this function At the end of the current code. what are things need to be attached with this ...

3 years ago | 0

Answered
how i can fix this error?
i == 1; would attempt to look for a variable named i and if it were found, then it would attempt to compare each element of i t...

3 years ago | 0

Answered
Using the isosurface() function for 3D coordinate sets
The output of isosurface() is the data needed to construct a patch() object, so it contains information about the vertices and t...

3 years ago | 0

Answered
2d line plot
You can use File Exchange contributions such as https://www.mathworks.com/matlabcentral/fileexchange/8597-plot-3d-color-line or ...

3 years ago | 0

Answered
Fsolve with different combinations of parameters
Increase the maximum evaluations instead. opts = optimoptions(@fsolve, 'MaxFunctionEvaluations', 1e5, 'MaxIterations', 1e5); ...

3 years ago | 0

Answered
Error using * Incorrect dimensions for matrix multiplication.
zf_rate2(i_snr, i_users) = log2(1 + abs(w_zf' *curr_channel).^2/noise_var); w_zf is 1 x 4. w_zf' is 4 x 1. curr_cha...

3 years ago | 0

Answered
How to change the number of columns in legend while changing the line thickness?
I don't understand why changing from a single to multiple outputs doesn't let me change the number of columns. The use of more ...

3 years ago | 0

| accepted

Answered
Datenum hour intervals within days to plot with imagesc (Matlab)
What you will have to do is just use integer X coordinates, with the data in cdgridN2f having no gap (or perhaps a gap of 1), an...

3 years ago | 0

Answered
Support for Multiplication and Transpose of Block Matrices of Symbolic Matrices?
Does MATLAB not support multiplying and transposing block symbolic matrices? No, it does not. Most operations are postponed on ...

3 years ago | 3

| accepted

Answered
How can I save images in a matrix?
Replace imwrite(imresize(im, [224 224]), filename_out); with filenames{i} = filename_out; saved_im{i} = imresize(im, [224...

3 years ago | 0

| accepted

Answered
Error using vertcat Dimensions of arrays being concatenated are not consistent.
histcounts() returns row vectors whereas unique() of a non-row returns a column vector. (Unique of a row vector returns a row ve...

3 years ago | 1

Answered
What happens to my student license when my undergraduate degree ends?
Student licenses (ones that you purchase) are not tied to university emails: you can change your email for your MATLAB Central a...

3 years ago | 2

Answered
Running out of memory, preallocate memory
For efficiency, but not necessarily any better on memory allocation: allspiketimes= xlsread ();% File here is a numeric array o...

3 years ago | 1

Answered
How to remove apostrophes from empty cells when using readtable
NewTable = convertvars(convertvars(YourTable, @iscellstr, 'string'), @isstring, 'double'); This would convert the '' into NaN -...

3 years ago | 1

| accepted

Answered
How to convert AnsiChar (char8_t) into HEX?
It isn't completely clear what you want datastring = "ę˙°ţiţ{ý" fprintf('%02x ', typecast(swapbytes(uint16(char(datastring))),...

3 years ago | 1

Load more