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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 2

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Beantwortet
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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Mehr laden