Réponse apportée
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;

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
animation of figures in sequence
drawnow More https://www.mathworks.com/help/matlab/ref/drawnow.html

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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....

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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)); %...............................

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

Réponse apportée
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

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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? ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Select specific rows in dataset
c=find(data_set(:,2041)==0)

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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)...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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=...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Charger plus