Answered
AVX Programming, how to do within C mex file
If you are using Visual Studio then see https://devblogs.microsoft.com/cppblog/avx-512-auto-vectorization-in-msvc/

2 years ago | 0

| accepted

Answered
why do I get "Licensing error: -8,523" although activation was successful?
If you are getting license manager error -8 on a system that you have run activation on, then one of the following is the case: ...

2 years ago | 0

Answered
Matlab crashes with large matrix
Well, that is certainly possible... if you make the arrays large enough then there might just not be enough memory available. I...

2 years ago | 1

| accepted

Answered
Related to finding columns of a matrix satisfying specific conditions
nz = YourMatrix ~= 0; pattern = [false; false; true; false; true; false; false; false]; matching_column_mask = all(nz == patte...

2 years ago | 0

| accepted

Answered
surf 2 solid question
sidelength = input('Enter Side length: '); height = input('Enter Height: '); V=nsidedpoly(12,'Side',sidelength).Vertices; V(e...

2 years ago | 0

| accepted

Answered
Using a Network Named User license on machine not connected to Domain
The official solution would involve installing a second license server inside the safe zone. If, though, you only need this tes...

2 years ago | 0

| accepted

Answered
Error message: Index exceeds the number of array elements. Index must not exceed 1. When I use trim function
According to trim y0 must be immediately after u0

2 years ago | 0

Answered
How can I get MATLAB to preserve column names as variables when importing a csv file to timetable?
Works for me, provided that the number of header variables does not exceed the number of detected columns. When I accidentally...

2 years ago | 0

Answered
In an existing dropdown ('A', 'B', 'C'..) in GUI, how can I add popup for certain selection to decide it's property by assigning say 35% of A+65% of E
That is not going to happen automatically -- what you are asking for is too complex to be a built-in activity. You will need to...

2 years ago | 1

Answered
How to convert 2d implicit plot to 3d plot?
syms x y c f(x,y,c) = (x.^2 + y.^2) .* (sin(atan(y./x))).^2 .* (0.5 - (5./((sqrt(x.^2 + y.^2)).^3))) + c ; fimplicit3(f, [-10 ...

2 years ago | 0

Answered
call function with fewer parameters
In MATLAB, it is not directly an error to call a function with fewer parameters than it is defined with. Instead, at the time t...

2 years ago | 1

Answered
Color zooming or halftoning
Decided on a per-layer transparency, something like transparency = 0.8; Create each halftone in an array. image() the lowest...

2 years ago | 0

| accepted

Answered
dbstop if error not working
if you are within a try/catch then use dbstop if caught error

2 years ago | 0

Answered
How to use strcat in imwrite to save multiple figures
See exportgraphics()

2 years ago | 0

Answered
Arrays have incompatible sizes for this operation for multiplying Parameters, what code would be proper to type in?
AA.Constraints.one = permute(AIT, [3 1 2]) .* LILT == ff;

2 years ago | 0

Answered
Use patch() with boxplot
fill(rand(1,5)*3, rand(1,5)*sqrt(2), 'g'); hold on boxplot(rand(5,3)) hold off

2 years ago | 1

Answered
ncwrite error dimension does not have an associated length specified
ny = 409; nz = 3; nx = 313; climate=rand(nx,ny,nz); lonn=rand(nx,1); latt=rand(ny,1); time=rand(nz,1); fileout='climate...

2 years ago | 0

| accepted

Answered
Error using barrier. Objective function is undefined at initial point. Fmincon cannot continue.
Your first returns in the xlsx file is empty. empty is read in as NaN. The returns column gets passed into the objective functi...

2 years ago | 0

| accepted

Answered
How do I achieve object detection using yolov4 using a webcam (Realtime object detection)
See for example https://www.mathworks.com/help/driving/ref/yolov4objectdetectormonocamera.html which shows a loop of reading cam...

2 years ago | 0

Answered
how to calculate the energy consumption of cluster head for every round ?
So, given any one cluster head, if there are N other nodes in the same cluster (total N+1 nodes in the cluster), and there are C...

2 years ago | 0

| accepted

Answered
Can anyone verify that my solution to the question below is correct?
You have aliasing. You have a signal [0 10e-6] sampled 1000 points, so each is about 10e-9 apart. Your y sine wave is frequenc...

2 years ago | 1

| accepted

Answered
Use MEX functions to call external APIs
Yes see https://www.mathworks.com/help/simulink/implement_algorithms_c-code.html

2 years ago | 0

| accepted

Answered
Empty Sym: 0-by-1 for Solve
kappa = sqrt((n_s^2*w^2/c^2)-beta^2); gamma = sqrt(beta^2-(n_s^2*w^2/c^2)); the expressions within the sqrt() are the negative...

2 years ago | 1

Answered
Hangs upon trying to download installer
People in China have reported problems downloading MATLAB, especially if they are using a VPN. Sometimes they just need to tem...

2 years ago | 0

Answered
I I'm new to matlab and Ikeep getting "Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in "THRUST CURVE FUNCTION LINE 3"
You should not be using integral for that kind of situation. You have a table of numeric values, and you are trying to integrat...

2 years ago | 0

Answered
Ploting same y axis with two colors
See https://www.mathworks.com/matlabcentral/fileexchange/19476-colored-line-or-scatter-plot or https://www.mathworks.com/matlabc...

2 years ago | 0

Answered
How to write delta in matlab?
Like what is the syntax for delta in matlab? MATLAB does not have the delta operator. The suggested dirac() does not work for t...

2 years ago | 0

Answered
How can i change the result in the annualpayment in the table to a number with 4 decimal, and not in exponentioal form
%Annual Payment for Loans p = 55000; %in dollars r = 0.066; %interest rate n = 1:5; %year %Formula to be Use A = (p * ((r*(...

2 years ago | 0

| accepted

Answered
Hello everyone, do you have the MATLAB source code for cell free massive MIMO linear precoding?
I do not have code for that, but the authors of the paper described at https://assets.researchsquare.com/files/rs-884208/v1_cove...

2 years ago | 0

| accepted

Answered
strong.mat file not found in MATLAB installation
You need to run openExample('signal/SpeechSignalCompressionExample') If you do not have the documentation (with examples) inst...

2 years ago | 1

Load more