Answered
Not enough input arguments for plotting Precision-Recall curve
evaluateDetectionPrecision "For a multiclass detector, recall and precision are cell arrays, where each cell contains the data ...

4 years ago | 0

| accepted

Answered
Is it possible to loop through 3D coordinates in a meshgrid using only one for loop?
for idx = 1 : numel(X3D) this_x = X3D(idx); this_y = Y3D(idx); this_z = Z3D(idx); stuff involving this_x, this_y, this...

4 years ago | 0

Answered
I am trying to randomize a marker color
'b':'r':'g' You have used the colon operator. 'b' <= 'g' so you get at least one value, but 'b' + 'r' > 'g' so you only get one...

4 years ago | 0

Answered
Trying to use user input directly into another switch case.
switch Rand %uses the random integer to choose a random question case 1 q1 = input('How is your day today? go...

4 years ago | 0

| accepted

Answered
How to add breakpoints when I am pausing a running code
A file that is modified but not yet written will have the breakpoints show up in gray until the file is written out. If I unde...

4 years ago | 0

Answered
Solve equation without symbolic toolbox
digits(50) syms x F = 0.0178508*x^2 - 1/(0.694548*(1/x)^0.9 + 0.000136807)^5.44; sol = vpasolve(F, x, [1e10 1e15]) subs(F, x...

4 years ago | 0

| accepted

Answered
How can I extract the width values for each streamribbon coordinate?
The width of the ribbons is not explicitly recorded in the graphics objects, and cannot be directly calculated from the graphics...

4 years ago | 0

Answered
how to call the function from the other file?
You editted the file rdnim and added the lines close all; clear all; clc; to the top of it. That turned rdnim from a functio...

4 years ago | 1

| accepted

Answered
random number generating RANDI with percentage
If you have the Statistics Toolbox, use randsample() If not then: Find a number, S, such that S*p is an integer for each proba...

4 years ago | 0

Answered
I am getting an errror "Array indices must be positive integers or logical values."How to resolve it?
you syms w and your first iteration you do a calculation with that sym. But then you have w=(n^2*pi^2/l)*((EI/m)^0.5); which ...

4 years ago | 0

| accepted

Answered
pdist time complexity and inner working
You can read the source code. For most of the distance measures a loop is done over elements of the array, picking out a part...

4 years ago | 0

| accepted

Answered
speech2text into sentences
No, this is something that requires sentiment analysis at the very least, possibly more complicated than that. You can get cl...

4 years ago | 0

| accepted

Answered
why stepseq error in matlab 2022a
stepseq is not a function provided by Mathworks. See https://www.mathworks.com/matlabcentral/answers/12834-unsolved-function for...

4 years ago | 0

Answered
Unable to understand how to use the function given on the site below
Copy the matlab code from the site you linked to. Then call the rdnim function passing in the name of the (unzipped) file. It...

4 years ago | 1

| accepted

Answered
how to eliminate the small values in cell array
t(cellfun(@numel, t) >= 10)

4 years ago | 0

| accepted

Answered
how to make an array without empty cell
t(~cellfun(@isempty, t))

4 years ago | 1

| accepted

Answered
Systems with memory-Function for
vec=[1 0.5 0.75 0.5 1 0] vm = movmean(vec, 2) plot([vec; vm].')

4 years ago | 1

Answered
Why am I getting unrecognized function or variable 'length' ??
At some point in the same function, you assigned a value to a variable named length . Once you do that, then even if you clear i...

4 years ago | 0

| accepted

Answered
Getting in line 57 as error using "/", "matrix dimensions must agree". Also, can v_diff and x_diff can be normalized for any input of v and L?
for x = 1:num_vals At any one time, x would be a scalar end after the end, x would be left as the last value assigned to it, ...

4 years ago | 0

| accepted

Answered
Convert Array of symbolic expression to array of symbolic function handle
Please not that I'm converting to function handle to integrate the functions fast. 'int' from symbolic toolbox takes a lot of ti...

4 years ago | 0

Answered
How to set up an array given a string input by the user?
Character vectors are already arrays of characters. input_string = "Hello World!" %this is a string() object, not a character ...

4 years ago | 0

| accepted

Answered
SNR for the ECG Signal
N = fft(n); spect = 2*abs(N)/length(N); N is (likely) complex-valued. spect takes abs(N) so it contains only real non-negati...

4 years ago | 0

| accepted

Answered
Hi, How can I detect and track an object while its moving in a video and want to know its position?
See https://www.mathworks.com/help/vision/tracking-and-motion-estimation.html If this is in the context of Driving (video is r...

4 years ago | 1

Answered
Sample selection from a table
current_table = original_table; %as long as there are enough entries in the table while height(current_table) >= NumberToSel...

4 years ago | 0

| accepted

Answered
Why doesn't my code work for Newton's Method
f = @(x) cos(x) ./ x; x0 = 3; N = 10; %below is my code, f_p is f prime and f_dp is f double prime min_found_at = Newtons_...

4 years ago | 1

| accepted

Answered
Intersection between unknown functions
x = newTable.Latitude; y = newTable.Longitude; At that point, use https://www.mathworks.com/matlabcentral/fileexchang...

4 years ago | 0

Answered
Problem using num2cell!
A(:,:,2) - A(:,:,1) is all zero. So is A(:,:,15) - A(:,:,9) and all other possibilities. nnz(diff(A,[],3)) is zero. Your thir...

4 years ago | 1

| accepted

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-20.
t = 1:20; % Number of time steps That is a vector of size 1 x 20. b1(t) = b01*(t) + 0.01*(t); b2(t) = b02*(t) + 0.001*(t); S...

4 years ago | 0

| accepted

Answered
Error in rescale (line 36) [A, a, b, inputMin, inputMax] = preprocessInputs(A, varargin{:}); Error in kc (line 36) out_images(:,:,:,i) = uint8(rescale(C(idx,:),[size(a,1)
Unfortunately you do not show us the source code of the call you are making to rescale() However when we look at the error mess...

4 years ago | 0

Answered
How to down sample an imported txt file in MATLAB
filename = 'as appropriate'; YourTable = readtable(filename); NewTable = YourTable(1:20:height(YourTable), :);

4 years ago | 0

Load more