Answered
Deleting All the Rows with values Bigger or equal than 10
mask = Output(:,4) >= 10; Output(mask,:) = [];

4 years ago | 1

| accepted

Answered
How to Merge the cells and name?
You cannot create that kind of table in MATLAB. In order to have a row name span multiple rows, you will need to create a table...

4 years ago | 0

Answered
May I know what is this error? in gui to stress-strain model in for-end
You currently have delta_L=0; for vec(i) = str2double(query(myDmm, 'READ?')); %vec(i)번째에 읽어들인 값 저장 However, you need to ...

4 years ago | 0

Answered
Issues using Summation in Matlab
never use symsum to form the sum of a vector of values. The variable of summation for symsum is always symbolic, but symbolic va...

4 years ago | 1

Answered
Reading 8x8 matrices from file into MATLAB
filename = 'YourFile.csv'; S = fileread(filename); blocks = regexp(S, '#', 'split'); fmt = [repmat('%f,', 1, 7), '%f']; nume...

4 years ago | 0

Answered
Will the Free Trial of the Deep Learning Toolbox run on my Macbook Pro?
Yes, it will run on your Macbook Pro. However, it will not be able to take advantage of any GPU that you might have. GPUs are n...

4 years ago | 0

| accepted

Answered
Sum of 5 consecutive video frames
If you have the frames already in a 3D array, then you might want to consider using movmean or movmedian window = 5; dim = 3; ...

4 years ago | 0

Answered
keep from evaluating a symbolic expression
You can use displayFormula on the character (or string()) version of the formula, and later convert that to symbolic as_char = ...

4 years ago | 0

Answered
'MatchFilter' is not a recognized parameter. Is causing Simulink Real-time build to fail.
https://www.mathworks.com/help/releases/R2020a/simulink/slref/simulink.findoptions-class.html?s_tid=doc_ta MatchFilter was not...

4 years ago | 0

Answered
Extract segments of 1's from binary matrix
You can bwconncomp and pass in a connection array that is a central row or central column of 1s. You would do that twice, once f...

4 years ago | 0

| accepted

Answered
Array indices must be positive integers or logical values.
Remember that MATLAB has no implied multiplication, so your code is asking to take 1 divided by (Nt indexed at something), where...

4 years ago | 0

Answered
Finding Maximum Consecutive Dry Days in Daily Rainfall Data
This code shows one way of finding all the runs of maximum length. rng(12345) drf = rand(366,1); % mocking up some daily rainf...

4 years ago | 0

Answered
related to the fprintf
number_of_shoes = 4; for shoe_number = 1 : number_of_shoes filename = sprintf('SCRW;NAME;SCRW_%d', shoe_number) end

4 years ago | 0

Answered
How to I create variables with different names in the workspace using for loop?
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval fo...

4 years ago | 1

| accepted

Answered
num2char? dpath?
<http://www.pages.drexel.edu/~dml46/Projects_Genomic_Coding.html> has code for a function named num2char. It is not clear wh...

4 years ago | 0

| accepted

Answered
do specific work after a specific warning
https://www.mathworks.com/help/matlab/ref/lastwarn.html Use lastwarn, especially the two-output version that lets you get the...

4 years ago | 1

Answered
Real-Time Controller with DAQ
Within limitations, yes. I have not done this myself, but I have seen people mention having done it. There are at least three...

4 years ago | 0

| accepted

Answered
Storing info of an averaging automated process into an array without extra values
A numeric array cannot store different number of values according to row. You would need a cell array for that.

4 years ago | 0

Answered
Image compression channel not working
IMAGEBIN=im2bw(im,0.4); im2bw returns logical data encodedData = step(enc, IMAGEBIN(:,[1])); That kind of encoder d...

4 years ago | 0

| accepted

Answered
grey image color restoration after image subtraction
mask = repmat(all(Subtracted == 0, 3), 1, 1, 3); Subtracted(mask) = Original(mask);

4 years ago | 0

Answered
Concatenate together two cell arrays
BB = cellfun(@(c,d) [c;d], CC, DD, 'uniform', 0);

4 years ago | 1

| accepted

Answered
I tried to solve 6 couple differential equation, and getting an error which is " Index exceeds the number of array elements. Index must not exceed 2."
x = tspan(1):h:tspan(6); That line is expecting that tspan is a vector or array with at least 6 elements Working backwards f...

4 years ago | 0

| accepted

Answered
Why do I recieve an error when trying to change the Line Width of a plot line?
https://www.mathworks.com/help/curvefit/cfit.plot.html#namevaluepairarguments plot() of cfit or sfit objects is not the regula...

4 years ago | 0

Answered
Error using integer wavelet transform
[cA, cH, cV, cD] = lwt2(double(data), 'LiftingScheme', liftscheme);

4 years ago | 0

Answered
How to check the function call stack during the debugging process
What you might be running into is that callback functions are considered to not have a calling function. Each callback is execut...

4 years ago | 0

Answered
how to padding array with zeros to limit rows (I can choose the limit)
[AB; zeros(21-size(AB, 1),size(AB, 2))]

4 years ago | 0

| accepted

Answered
How do you remove x-axis tick marks and keep the numbers?
plot(rand(1,20)) ax = gca; ax.XAxis.TickLength = [0 0.1];

4 years ago | 0

Answered
How to write code for solving system of nonlinear inequality
x=-10:1:10; for i=1:length(x) if x(i)>=0 y(i)=6*x(i)^2-5*x(i)+14; elseif x(i)>10 disp('x out of ran...

4 years ago | 0

| accepted

Answered
How do I find the index of the first element equal to 0 for each row of a matrix in a fast way
You cannot do it with a single find() A vectorized way to do it is M = ones(5,10); M(randperm(50,10)) = 0; M idx = sum(cum...

4 years ago | 0

Answered
Using a for- loop to extract a range of columns every n-columns
data = rand(64,10000); startcols = 1:2000:size(data,2)-1999; for w = 1:length(startcols) sc = startcols(w); extrac...

4 years ago | 0

| accepted

Load more