Answered
When creating a table, how do I specify the dimensions of a particular variable?
my_table = table('Size', [0,7], 'VariableNames', ... {'name', 'window', 'fs', ... ...

5 years ago | 0

| accepted

Answered
How can I use funtions defined in a column vector individually?
Please help me understand how the ode45 routine acceses the rows of odefun individually. It doesn't, not the way I think you me...

5 years ago | 1

Answered
How does code working in matlab ?
doc not doc bwlabel doc set

5 years ago | 0

Answered
The basic function of Matlab?
I recommend you contact the Sales team using the link just below the search box near the upper-left corner of this page and desc...

5 years ago | 0

Answered
Simple for loop on 90k records runs 51 seconds?!?
I would use vector operations. Let's see, try something like this (untested): interval = diff(data.time); s = seconds(interval...

5 years ago | 1

Answered
How to calculate average of each column on a test file
Read the data into MATLAB. Use the mean function. Call the plot function.

5 years ago | 0

Answered
How to make a Monte carlo simulation for identifying prime numbers with a non-100% probability
This section of code (shortened quite a bit) doesn't do what you think it does. % if FrstMove==2 || 3 You expected this to be ...

5 years ago | 0

| accepted

Answered
simulink toolbox matlap online
As stated in the Release Notes Simulink® Online was introduced as a web update as part of release R2020a.

5 years ago | 0

Answered
Why identifier "mxGetUint64s" is undefined in mex or cudamex?
What happens if you build your MEX-file using the interleaved complex API by passing the -R2018a option to the mex command as sh...

5 years ago | 1

| accepted

Answered
How to correct error using RESHAPE
Let's look at the relevant bits of your code, shall we? %{ RMphantom = imresize(whatisit,[128 128]); % Rescaled % Set the par...

5 years ago | 0

| accepted

Answered
Smart for loop for summing cell array matrices
a cell matrix class_test made of 100x30 matrices (i.e. each element of classs_test is a 1229x119 matrix) In this case, where al...

5 years ago | 0

| accepted

Answered
Multiply matrix by each element of a vector without a for loop
A = [1,1;1,1]; v = [1,2,3]; R = pagemtimes(A, reshape(v, 1, 1, []))

5 years ago | 0

Answered
How to do assert isequal with a multiple returns function
I agree with dpb. I would also break this into one assert per output argument. While you could wrap the outputs in a cell array ...

5 years ago | 1

| accepted

Answered
Matlab Example not found/install
I believe that example was introduced in release R2020b. You will need to upgrade to release R2020b or later to have access to a...

5 years ago | 0

| accepted

Answered
could anyone help me how to generate two different random numbers of same value.
A = rand(5, 5); A1 = A; A2 = A; % Make copies for later comparison B = rand(5, 5); numberOfMatches = 6; locationOfMatchesInB...

5 years ago | 0

| accepted

Answered
Convert matlab file to exe file
See MATLAB Compiler.

5 years ago | 0

| accepted

Answered
How to find first instance of a value in array?
You could use logical indexing. rng('default') c = randn(1, 10) arr = abs(c) % Overwrite those values in arr that are out of...

5 years ago | 0

| accepted

Answered
Unable to resolve the name matlab.engine.start_matlab.
My interpretation of the two lines of code in the "Start MATLAB Engine" section of the documentation page to which you linked is...

5 years ago | 1

| accepted

Answered
How can I solve an error saying"length of lower bound is >length of (x) ignoring extra bounds "in ga multiobj
That was likely a warning (displayed in orange; errors are displayed in red) that the ga function thinks you did something wrong...

5 years ago | 1

Answered
What is the proper format to express ln z?
The natural logarithm function in MATLAB is log not ln. [There are log10 and log2 functions for base 10 and base 2 respectively....

5 years ago | 0

| accepted

Answered
Remove timestamps (date & time) that appear on every figure by default
Let's make sure first that no one has written functions that are taking precedence over the built-in graphics functions. Can you...

5 years ago | 0

Answered
Why are the attached .mat files not matrices? What are these files?
A, B, and E are sparse matrices. Only the non-zero elements and the row and column indices of those non-zero elements are stored...

5 years ago | 0

| accepted

Answered
How do I get the different maximum values of a plot where a peak has the same value several times.
Take a look at the islocalmax function.

5 years ago | 1

| accepted

Answered
How to use changing logical states in a MATLAB intregrator
It sounds from your description that the solution to your system of differential equations at a given time depends on the soluti...

5 years ago | 0

| accepted

Answered
where is Testing section on the Classification Learner tab as explained in documentation?
Which release are you using? Does the documentation for the Classification Learner app in the release you're using include that...

5 years ago | 1

| accepted

Answered
I want to plot a graph for a function which varies according to the range of the variable (Like a piecewise function)
You can operate on a vector of values using logical indexing with a mask for each of your conditions. % x data d = 0:360; %...

5 years ago | 1

Answered
Is there a way to comment out all unused lines in an automatically generated code at once?
You can use the block comment operators to comment out a section of code, or you could select the lines and use either the butto...

5 years ago | 0

Answered
s it possible to have double subscript in a figure label
I could have gone further but with smaller and smaller letters it gets more difficult to read. xlabel('A_{B_{C_D}}')

5 years ago | 1

Answered
Combine The Workspace Variable Name of a unit8 Variable with Value of a 1x1 Double to Create An Output Variable with a Combined Name
A tl;dr version of Stephen's comment: Can you do this? Yes. Should you do this? The general consensus is no. There are seve...

5 years ago | 1

| accepted

Answered
Sizeof double float int etc
I need something very similar with a matrix now. I will be storing bigger and bigger matrix and I need to find their size in the...

5 years ago | 1

Load more