Answered
How can I import .mxf-files?
As you see in the documentation, there is no mxf support yet: <https://www.mathworks.com/help/matlab/ref/videoreader.html>. But ...

9 years ago | 0

Answered
audioread not working in ubuntu 16.04
Maybe this helps - or to be exact does *not* help: * <https://de.mathworks.com/matlabcentral/answers/359613-audioread-freezes...

9 years ago | 0

Answered
How can I plot a chart?
N = 100; axes('NextPlot', 'add'); % see "hold on" for i = 1 : N Ec = Ecm / (1 + q); h1 = (h-x)/3; h2 = 2...

9 years ago | 0

| accepted

Answered
I want to concate two tables vertically.the table has no variable name.how can I do that?
T1 = array2table([1,2,3,4; 5,6,7,8]); T2 = array2table('ABCD') C12 = [table2cell(T1); table2cell(T2)]; T12 = array2...

9 years ago | 1

Answered
Now I want to convert this character matrix which contains the string called 'Hello', into the numeric matrix which accepts this string by converting into the int / numeric matrix.
A bold guess: str = 'Hello' a = double(str) Now |a| contains the ascii values of the characters of the string.

9 years ago | 0

Answered
how to convert cos(2*pi*f1*t).^2 wave into cos(2*pi*f1*t) wave?)
By taking the square root? f1 = 23; t = linspace(0, 4*pi, 10000); y2 = cos(2*pi*f1*t).^2; y = sqrt(y2) But th...

9 years ago | 0

Answered
Load file and remove string characters.
What about: FC = textscan(fid, '%d %d %d %d %d %d %d %d %d %d %d %d %d %s'); Then remove the last column in FC. Or: ...

9 years ago | 0

| accepted

Answered
Cell evaluate indexing - Index exceeds matrix dimensions.
You can use char variables as index, but they are converted to their ASCII value at first: disp(double('a')); x = 1:100;...

9 years ago | 1

Answered
how to use derivation to a function from the user
See <https://www.mathworks.com/matlabcentral/answers/312339-how-to-convert-strings-to-symbolic-expressions-without-sym> for the ...

9 years ago | 0

Answered
How to divide image into non-overlapping blocks??
What do you want to do with the blocks? Would using <https://www.mathworks.com/help/images/ref/blockproc.html |blockproc|> be su...

9 years ago | 1

| accepted

Answered
I need to access variables of my file from one m file to another
An example for using input arguments to provide (not "share") variables in a function: % M-file "fcn1.m" function fcn1 ...

9 years ago | 1

| accepted

Answered
How do i repaired this coding, keep getting these errors i using Matlab2015b...
The error message looks clear: ERROR: TG_Connect() returned -2. Check this in Matlab directly without GUI: portnum1 ...

9 years ago | 0

Answered
Matrix manipulation from one to another one
B = [1 2 3 4 5; ... 6 7 8 9 10; ... 11 12 13 14 15]; siz = size(B); idx = sub2ind(siz, ran...

9 years ago | 1

Answered
Normalize matrix elements resulting in sum of elements of one.
Perhaps you want: A = rand(5, 5); % Test data B = A / sum(A(:)) If you want something else, please explain *which* s...

9 years ago | 1

Answered
How to load a variable into the workspace not as a structure into a GUI?
Remember, that the remote controlled creation of variables in another workspace is a bad programming style. I would avoid this s...

9 years ago | 0

| accepted

Answered
How can i check if a matrix is magic square or not?
if(s1==s2==s3==s4) This is processed from left to right: s1==s2 This is either TRUE (1) or FALSE (0). In the next s...

9 years ago | 0

| accepted

Answered
How to prevent adding a number to a matrix elements?
The auto-expanding of scalars is a typical feature of Matlab since it has been created. This behavior can and should not be chan...

9 years ago | 1

Answered
How can access elements of two cell at one time
Perhaps: C = cell(1, 1024); C{19} = rand(256, 1); % The 7th element of the vector stored in the 19th element of the...

9 years ago | 0

Answered
How to plot under certain conditions ?
Since Matlab R2016 with auto expanding: x = -4:4; x2 = x.^2; D = x2 .* x2.' < 16; Note: Comparing with 4^2 is ch...

9 years ago | 0

Answered
Vectorizing the colon problem
the regions do not overlap but may touch (endpoint of reg. 1 = startpoint of reg. 2) This means, that the regions can over...

9 years ago | 0

| accepted

Answered
Anybody knows where to get some Matlab/Simulink desktop wallpapers?
What about using the logo created by (link provided by Image Analyst): openExample('matlab_featured/MatlabLogoExample') ...

9 years ago | 0

Answered
How to increase elements of a vector without changing its plot?
What about a "nearest" interpolation? Y = interp1(1:length(X), X, linspace(1, length(X), 3000), 'nearest') Then Y contai...

9 years ago | 3

Answered
what is the code for modified zhang suen algorithm?
No, I can't. It is unlikely that anybody can provide exactly the code you need. A more detailed description might be useful. ...

9 years ago | 0

Answered
Throughput calculation for the system
N = 0.01; Throughput = 1 + S ./ N; Total = sum(Throughput(:));

9 years ago | 0

Answered
minimum of different sized cell arrays using cell2mat error
The fast C-Mex function <https://www.mathworks.com/matlabcentral/fileexchange/28916-cell2vec FEX: Cell2Vec> converts the content...

9 years ago | 1

Answered
Limit on the no. of times a deactivation/sctivation of license.
This is the public forum and most of the answers are given by voluntary Matlab users. Sometimes the MathWorks Support Team posts...

9 years ago | 0

Answered
Help with set(handles.text) for a GUI
You are almost there: List = {'text1', 'text2', 'text3'}; for index = 1:length(List) set(handles.(List{index}), 'St...

9 years ago | 6

Answered
I-pad access offline
See <https://www.mathworks.com/support/sysreq.html>: Matlab does not run on iPads, but under macOS Sierra (10.12), El Capitan (1...

9 years ago | 0

Answered
Can't open matlab .m files
It seems, like either the paths of the two Matlab versions interfere, or that something different failed during the installation...

9 years ago | 0

Answered
my question is that how can I write bisection method and secant method in one m-File?
function X = BothMethods(fcn, method, args) if strcmpi(method, 'bisection') ... Code for the bisection method elsei...

9 years ago | 0

Load more