Answered
Error: "index in position 2 exceeds array bounds"
Temp = DOdata.data(:,3) DOdata.data have only 2 columns, you are trying to access 3rd column.

5 years ago | 0

Answered
I want to add some of requiring to my codes ? How can I ?
while n<=0 n=input('Please enter the number of pizzas to order: '); if n<=0 disp('Value should be atleast 1 pizza to continue...

5 years ago | 0

Answered
find Center pixel to maximum distance
[r,c]=size(image); centre_pix=image(round(r/2),round(c/2)); The position of the pixel is [round(r/2),round(c/2)], now calculat...

5 years ago | 0

Answered
How to interchange both plot and bar colour
I feel you are looking for transperancy, so that both plots shoud clearly visible. month = {'apr19', 'may19', 'june19', 'july1...

5 years ago | 0

Answered
How to find location of elements in an array
idx=find(ismember(A,B))

5 years ago | 1

Answered
Undefined function or variable
As you mentioned that it is main scripts (Not associated function call). The error clearly stated that "Undefined function or va...

5 years ago | 0

Answered
How to find the difference (in pixels) between two boundaries/countours?
You can do number of ways: (Considering the single pixel value, as both section has same pixel value, may have small different) ...

5 years ago | 0

| accepted

Answered
Detecting and segmenting bubbles in a video
As you have already tried for basic segmentation approaches, according to my initial observation all bubbles are also quite chal...

5 years ago | 0

| accepted

Answered
How to call a function with multiple inputs in a script file?
Lets say the function name is fun1, which having 3 inputs and 3 outputs . Now call the function form another Matlab script, as f...

5 years ago | 0

| accepted

Answered
Hi i am a new learner please help me
>> intmin ans = int32 -2147483648

5 years ago | 0

Answered
How to create a loop on a matrix whose elements are also a row/column matrix.
%Partial Code DT=zeros(1,length(x)); for i=1:length(x) Z=[E(i)-V K1; K2 F(i)-V]; DT(i)=det(Z); end

5 years ago | 0

| accepted

Answered
counting how many times a certain value is repeated in a fixed interval
Multiple Ways: One way X=[0,0,1,1,0,1,1,1,1,1,0,0]; idx=find(X==1) for i=1:2:length(idx)-1 data(i)=idx(i+1)-idx(i) end ...

5 years ago | 0

Answered
For - While Loop Nested
R = 8.914; T=linspace(1.1,0.1,250); deltaG = -287500 + 22.75.*T; a= %?? % Define it PCO=linspace(a,0.01,100); deltaGnew=...

5 years ago | 0

Answered
Image Processing Operator Approximation Using Deep Learning
As clearly stated in the documentation, this example uses two tollboxes- Image Processing Toolbox Deep Learning Toolbox If yo...

5 years ago | 0

Answered
Counter in for loop is not working as expected
data1=ones(1,3); data2=1+ones(1,5); result=repmat([data1,data2],1,5)

5 years ago | 0

Answered
How to use an if statement to substitute NaN
p1=[11 15 7 40 50 100]; p2=[8 14 6 38 35 95]; %Combine and take row mean p3=[p1' p2']; p4=mean(p3,2); %Determine percent di...

5 years ago | 1

| accepted

Answered
Results as a loop
%Last section data1=0; results=[]; for i=1:length(T) result(b+data1,:)= params(:,:,T(i)); data1=data1+5; end

5 years ago | 1

Answered
Calculating the contributing terms of a summation equation
Please try any issue let me know https://www.mathworks.com/help/symbolic/symsum.html

5 years ago | 0

Answered
Measure the spreading length using image analysis.
Two ways: I am considering the pixel distance length based on spaial coordinates (Not the general scale length like mm or cm) O...

5 years ago | 0

Answered
Creating a histogram with specified data
If you want two remove those extra blank space, you can use xlim (Limitinng x axis scale). x = 2.5*rand(1,200)-1.7 hist(x,[-6...

5 years ago | 0

| accepted

Answered
Unrecognized function or variable 'helperExtractAuditoryFeatures'
I sense two possible reasons: Deep learning toolbox in not installed. (Type "ver" in the command window, it shows all installe...

5 years ago | 0

Answered
How to extract second largest blob from image?
large_1=bwareafilt(binary_image,1); %Extracting Large Blob large_2=binary_image & ~large_1; % Logical Operation to get 2nd larg...

5 years ago | 1

Answered
I am trying to calculate the perimeterof leaf but i'm getting the output as 2.7895e+3 in this way .please check this and correct my code. Thankyou in advance
As the sample leaf image is not attched with the question , hence I have checked with another image and it shown correctly lea...

5 years ago | 0

Answered
Median (Median) Filter Matlab
disp('##Input Data') a=randi([1,10],[4,5]) %Any random data %% # Using MATLAB Function medfilt2 disp('##Using MATLAB Median...

5 years ago | 0

Answered
How can I save 'H' using Runge-Kutta time-step in a single . mat file each day while the code will be running for six days?
Alert: I have no experience running code for six days. I also do not know the system requirements for this work. But here, based...

5 years ago | 0

Answered
Find max value position
x=find(Force1==max(Force1))

5 years ago | 1

| accepted

Answered
why this is Index exceeds matrix dimensions?
Vc = 2; Vm = 1.5; fc = 100; fm = 10; ts= 1/1000; n = 0:99; t = ts*n; vc = Vc*cos(2*pi*fc*t); vm = Vm*cos(2*pi*fm*t); va...

5 years ago | 0

Answered
How to store index values in the form of arrays using for loop?
Cell array rng default M = zeros(randi([3 6]),randi([3 6])) [u,v] = size(M) indices=cell(u,v); for i = 1:u for j = 1:...

5 years ago | 1

Answered
Finding specific iteration in a triple for loop
You can't do that, as all having different lengths. For equaly vector sie you can get the undex position and find the correspond...

5 years ago | 0

| accepted

Answered
difference of image histograms
im1=rgb2gray(imread('image1_name')); im2=rgb2gray(imread('image2_name')); diff_hist=imhist(im1)-imhist(im2); plot(diff_hist) ...

5 years ago | 0

Load more