Respondida
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;

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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 ...

más de 5 años hace | 0

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

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 2

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

Respondida
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....

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

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

más de 5 años hace | 0

| aceptada

Respondida
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)); %...............................

más de 5 años hace | 0

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

más de 5 años hace | 0

Respondida
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

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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? ...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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)...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

Respondida
Hello guys, I have a question concerning my Matlab script. I try to read/load several pictures but I always get the same error. Could anyone have a quick look at my script? The files I try to load defintely exist and they all have the .jp2 format.
As you have not given us the error message, so the following are possible guesses- First: B, G, R may be not a 2D image (gray i...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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=...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Cargar más