Answered
Why do i get this error of Array indices must be positive integers or logical values.
Replace the respective line with the following- sigma(k)=wb^2*(Ub-Uf)^2;

5 years ago | 0

| accepted

Answered
Counting coins - bwconncomp returns only one object
Please note it consider white pixels as objects, hence it shows 1. Have you check the "msk_dil_erd" image. May be you complement...

5 years ago | 1

| accepted

Answered
Which method to use, basic for loop or loop through values of a vector
More simpler, without loop x(ind) More, How to measure the performance of the code, link The 2nd approach (If I must have to ...

5 years ago | 0

Answered
animation of figures in sequence
drawnow More https://www.mathworks.com/help/matlab/ref/drawnow.html

5 years ago | 0

Answered
I need help converting cells of complexes into real/imaginary matrices
It seem the issue with data format, please have a look in the following example data={1+1i,3+6i} % Sample data data = 1×2 ...

5 years ago | 0

Answered
Saving matrixes in another matrix
Use cell array Say M1,M2,M3 ..are the matrices, save the all in one variable like data={M1,M2,M3} Please refer the MATLAB do...

5 years ago | 0

| accepted

Answered
Move multiple rows to specified postion
I suupose there are no condition this time, assumed the row number arbitarity?? Any logic of shifting positions? H_result=[H([1...

5 years ago | 0

Answered
need code for change detection in images
Apply Image Subtraction, add all result values, higher result value more probably changes. Or, you may check here Structural si...

5 years ago | 0

Answered
Need code for conversion of an image
Here supposed to be group certain pixels in one group (read about qualtization levels). Same can be done using imsegkmeans funct...

5 years ago | 2

| accepted

Answered
economic load dispatch using lambda iteration method
Here P(k)=(lamda-C(k,2))/(2*C(k,3)); As per the P(k) statements, you have to pass the C vector size minimum of mx3 Here m=In...

5 years ago | 0

Answered
using xls read to read value from column /row in a for loop
You can do the same without Loop also (Using Cell Array) Saving all Rows as key blocks key_blocks=mat2cell(binary_data,1*ones...

5 years ago | 0

Answered
Extract part from an image
[Gmag,Gdir]=imgradient(input_grayScaleImage); imshow([Gmag,Gdir]); title('<Gradient G Direction>') More imgradient

5 years ago | 0

| accepted

Answered
B-Spline Basic Matrix Error in line 21 when i am executing and the error is Error using bspline_basismatrix (line 25) Not enough input arguments.
This is custom function, you may call the function by passing necessary inputs arguments as defined in the input arguments list....

5 years ago | 0

Answered
Why my vars become to NaN?
Here plot(ME(1i)) M(1i) what does it means? 1i is a complex number for MATLAB >> 1i ans = 0.0000 + 1.0000i MATLAB allow...

5 years ago | 1

Answered
refreshdata, clf, "clear all output"
Refreshdata: refreshdata updates charted data in the current figure to reflect changes in workspace variables Clf: clf deletes ...

5 years ago | 0

| accepted

Answered
Generate N random number from weighted groups
w, of the same length as the vector population randsample([0:50, 100:150],10,true,rand(1,102)); %...............................

5 years ago | 0

Answered
Signal processing database separation
rows_num=find(dataset(:,2041)==0); Maybe you have asked a similar question before ?? The column number is definitely 2041

5 years ago | 0

Answered
How to convert images in .mat format to .csv format
Steps: (Use Loop to all one by one file) Load the images csvwrite to save save the file

5 years ago | 0

Answered
Calculating Coherence in an Matrix
I am trying to answer using the following code % Sample Array Data data_set=rand(259,1000); %I intentionally changed the colu...

5 years ago | 1

| accepted

Answered
Creating an Image matrix (5x10) from a 5x100 matrix
"I have created a 5x100 image matrix which contains all of the values recieved. However, intead of receiving this monstrosity of...

5 years ago | 0

Answered
How to select active tile in tiledlayout
"If now, for example, i want to go to the tile in the 2x3 postion and add a new plot while hold is activated, how do I do that? ...

5 years ago | 0

| accepted

Answered
Select specific rows in dataset
c=find(data_set(:,2041)==0)

5 years ago | 0

Answered
Error using horzcat Dimensions of arrays being concatenated are not consistent.
Note: Once I checked the code with the single file T0_715.txt with all iteration (34 times), there is any such issue, as you m...

5 years ago | 0

Answered
What should I do if I am getting different output every time I run my code in MATLAB code to obtain Bit error rate of BPSK modulation for the given data-[1 0 0 0 0 1 1 1]
Because of the following line (function randn)you are getting different results each time, may be random noise addition r=x+sig...

5 years ago | 1

| accepted

Answered
Counting silk worm eggs or fish eggs
You can try several approaches to see how much accuracy can be stated only after the results. One Way: hsv_im=rgb2hsv(im_data)...

5 years ago | 0

Answered
How to find the population when the year is 2012
Please see the interpolation function year=[1975;1980;1985;1990;1995;2000;2005;2010;2015;2019]; pop=[55.44;56.43;56.59;56.72;5...

5 years ago | 1

Answered
how to curve fiting
There is no description about the question. So I considered it as a sample example x=(1:20)'; % Example Make column data y=log...

5 years ago | 0

Answered
Adjustment of z axis of 3d plot
" I wanted to squeez z values to smaller values for better visualization." zai=0:0.001:1; %z values to smaller values?? for n=...

5 years ago | 0

Answered
fprintf but I want to write out variable name no its value
w=1:20; % Example data, it might be Numeric middle=mean(w); difference=abs(w-middle); [minDiff,indexOfMinDiff]=min(difference...

5 years ago | 0

Load more