Answered
Access data in two dimensional struct array
There's no guarantee that the field in the elements of a struct array have the same type or size, so making an array may not mak...

5 years ago | 0

Answered
Is it possible for Matlab to access files in Github?
If you mean clone a repository sure. See the Source Control Integration documentation. If you mean running MATLAB code (like te...

5 years ago | 0

| accepted

Answered
Hi, everyone! I need help on my problem. I have problem with an dde function. I will show you the code:
What signature does the documentation for dde23 state that the function whose handle you pass as the first input must have? "The...

5 years ago | 0

| accepted

Answered
How do you find the max within a specified window?
Depending on whether you want the windows to overlap or not, the movmax function (which did not exist when the question was aske...

5 years ago | 0

Answered
vgg16 not installed as Deep learning toolbox has missing this package
The solution is to install the free support package using the Add-On Explorer. If for whatever reason you can't use the Add-On E...

5 years ago | 0

| accepted

Answered
How do I input this into matlab as a numeric matrix?
Assuming you have numeric values for , , and and assuming J, Y, I, and K are referring to the various Bessel functions see the ...

5 years ago | 0

Answered
Solving the coupled system of ordinary differential equations in MATLAB
Convert your system of second order ODEs into a system of first order ODEs as demonstrated on this documentation page. That page...

5 years ago | 0

Answered
strsplit causing issues with several functions
Let's make sure you haven't created or downloaded a strsplit.m file that's taking precedence over the strsplit function included...

5 years ago | 0

Answered
Is the Compiler 2021a app compatible with Matlab R2020a?
Using a toolbox from one release with MATLAB from a different release (earlier or later) is not supported. So if you're using MA...

5 years ago | 0

| accepted

Answered
Network name license vs Individual license
For an official answer to licensing questions like this you should contact Customer Service using the Contact Support link under...

5 years ago | 0

Answered
How can I add a delay in a function of a function (DDE)?
The dde23 function is for solving delay differential equations with constant delays. The ddesd function is for solving delay di...

5 years ago | 1

| accepted

Answered
How to find the C=corresponding x axis values of a peak on Y-axis?
Index into the x vector using the output of islocalmax. x = 1:100; A = (1-cos(2*pi*0.01*x)).*sin(2*pi*0.15*x); tf = isloca...

5 years ago | 0

| accepted

Answered
passing handle objects by value
Have your class inherit from matlab.mixin.Copyable as described on this documentation page.

5 years ago | 0

| accepted

Answered
How to Skip two Array Elements with same length?
Often missing data is represented using NaN or missing.

5 years ago | 0

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

Load more