已回答
Does MATLAB support YOLOv4
See this FEX package: https://www.mathworks.com/matlabcentral/fileexchange/75305-yolov3-yolov4-matlab

4 years 前 | 3

| 已接受

已回答
How to measure how long it takes to run on test set ?
See tic toc: https://www.mathworks.com/help/matlab/ref/tic.html or timeit(): https://www.mathworks.com/help/matlab/ref/timeit.h...

4 years 前 | 0

| 已接受

已回答
Matlab plot ; How to plot figures like the file attached below
See pcolor(): https://www.mathworks.com/help/matlab/ref/pcolor.html or imagesc(): https://www.mathworks.com/help/matlab/ref/imag...

4 years 前 | 0

已回答
Different image filtering results with different types
If you apply conv2() to a uint8 image, it will return a double() matrix. You need to convert it back to uint8 to see the same re...

4 years 前 | 1

已回答
Loading structs into a script from the Workspace
This is not a dumb question; it highlights one of the common mistakes which new programmer make, i.e., creating variable names l...

4 years 前 | 1

已回答
mean returning wrong answer
You have a 305 in second row. I think it is supposed to be 30.5.

4 years 前 | 0

| 已接受

已回答
Classifying things into kinds
You can use accumarray() x = [2 3 1 3 5 1 2]; c = accumarray(x(:), (1:numel(x)), [], @(x) {x}) Result >> c{:} ans = 3...

4 years 前 | 0

| 已接受

已回答
How can i plot transfer function with step signal input?
You can multiplythem together and then use the impulse() function s = tf('s'); G = 2/(s+2); R = 2/s; sys = G*R; impulse(sys...

4 years 前 | 1

| 已接受

已回答
Function returning one value
You need to use element-wise division y = (x.*((x.^2)-1)./((x.^2)+1).^2); %^ put a dot here Read about eleme...

4 years 前 | 0

已回答
How to convert numerical array to string array for table formulation.Below is the 2 attached picture of my command window.
I guess in R2015x the table does not allow the column names to begin with a number. You need to add an alphabet at the beginning...

4 years 前 | 0

| 已接受

已回答
How to store values from an array to another array using Loops
Most efficient option is to create a matrix and store each output in a column B = zeros(200, 10) for i = 1:10 % calculate...

4 years 前 | 1

| 已接受

已回答
Manipulating Values in an Array with Logical Indexing
You can use B as a mask A=(C.^2+D.^2).*B Only places in which B is not equal to zero will have non-zero output.

4 years 前 | 0

已回答
Failing randomization through closing matlab
Read here: https://www.mathworks.com/help/matlab/math/why-do-random-numbers-repeat-after-startup.html . You can avoid the repeti...

4 years 前 | 1

已回答
Image matrix dimensions flipped compared to original image
Commonly image resolution is expressed as width x height. However, in MATLAB the size() returns "number of rows (height)" x "num...

4 years 前 | 0

| 已接受

已回答
Storing the maximum value in each iteration
You are overwriting the value of X in each iteration of for-loop. Do something like this v0 = [0:2:50]; X = zeros(size(x0)); ...

4 years 前 | 0

已回答
How to crop an image using matrices
You can use imcrop(): https://www.mathworks.com/help/images/ref/imcrop.html and then apply imresize(): https://www.mathworks.com...

4 years 前 | 0

| 已接受

已回答
Extracting data from cell array: Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
Can you explain in which form do you want the output? The following show how you can extract those values and store them in a ce...

4 years 前 | 0

已回答
simulink scope range from 0 to 5
Change the stop time of your simulation to 5. Why do you need to run simulation after that? The other option is this: In scope ...

4 years 前 | 0

| 已接受

已回答
Evaluate a vectorial symbolic matlab function through Matrices and vectors directly
The function handle is not being created in the way you want. Change the matlabFunction line to q = matlabFunction(qsym, 'Vars'...

4 years 前 | 0

| 已接受

已回答
Find, sort and assign values in matrix
Are you trying to get something like this q3 = [ 1.0000 2.0000 90.0000 4.9424 2.0000 3.0000 91.0000 ...

4 years 前 | 0

| 已接受

已回答
How do I control exponent in plot
You need to set the exponent property of x-axis'. Something like this ax = gca; ax.XAxis.Exponent = 18;

4 years 前 | 0

| 已接受

已回答
Wrong output from eigs function
According to the documentation of eigs(), by default, it returns 6 largest eigenvalues and their corresponding eigenvectors. Mat...

4 years 前 | 0

| 已接受

已回答
How to solve non-linear equations having modulus expression?
See lsqnolin(): https://www.mathworks.com/help/optim/ug/lsqnonlin.html. Or fmincon(): https://www.mathworks.com/help/optim/ug/...

4 years 前 | 0

已回答
System of linear equations
See solve(): https://www.mathworks.com/help/symbolic/solve.html from The Symbolic Math toolbox.

4 years 前 | 0

已回答
MATLAB Function Generates the Vertices of a Regular N-gon with Line Segments
You need n+1 points, because points at angle of 0 and 2*pi are same. t = linspace(0,1,n+1); Can you explain, what do you mean ...

4 years 前 | 0

已回答
Converting cell array to matrix
Use vertcat() coord = vertcat(centroid1{:}) following should also work coord = cell2mat(centroid1.')

4 years 前 | 1

| 已接受

已回答
How to make the y axis 'counts' and x axis the variable on Histograms
One option is to just rotate the view x = rand(1000,1); histogram(x) view(90, 90) Combining histcounts() with barh() is anot...

4 years 前 | 0

已回答
Infinite Recursion in own Levenberg-Marquardt Code
Inside the function korrektur, you are again calling korrektur with the same value of input parameter [s,mu]=korrektur(f,DF,x,...

4 years 前 | 1

已回答
imwrite error for saving contents of a cell array in a for loop - "colourmap should have 3 columns"?
Why are you getting the indexed image in frame2im(). Getting an RGB image will make things easier. Change the line to figureIm ...

4 years 前 | 2

| 已接受

已回答
How to Select Specific Time Intervals Over a series of time steps
Is the data loaded in MATLAB? If yes, you can do something like this dts; % datetime vector; Transp_val; % Transpiration value...

4 years 前 | 1

| 已接受

加载更多