Answered

Summation of Random Numbers

I would use a while loop. while summation <= x %add a random integer to the summation end

Summation of Random Numbers

I would use a while loop. while summation <= x %add a random integer to the summation end

4 jours ago | 0

| accepted

Answered

How do I only take the first 1000 elements of a vector?

NameOfVariable(1:1000)

How do I only take the first 1000 elements of a vector?

NameOfVariable(1:1000)

4 jours ago | 0

| accepted

Answered

For loops and If statements not working correctly

https://www.mathworks.com/matlabcentral/answers/480004-need-help-with-taking-an-array-inside-a-for-loop-and-plotting-it#answ...

For loops and If statements not working correctly

https://www.mathworks.com/matlabcentral/answers/480004-need-help-with-taking-an-array-inside-a-for-loop-and-plotting-it#answ...

4 jours ago | 0

Answered

Please help me !!! Error using * Inner matrix dimensions must agree. Error in GRAFICA_TOTAL_2 (line 40) Volum= (2*T.^2*q1+q2*T.^3*((1/2-(A1*(A2-A3))/2*C*Ro*G(A1+A2-A3))))

Volum= (2*T.^2*q1+q2*T.^3*((1/2-(A1*(A2-A3))/2*C*Ro*G(A1+A2-A3)))) q2 is 1 x 301. T is 1 x 301. The * operator is algebraic mat...

Please help me !!! Error using * Inner matrix dimensions must agree. Error in GRAFICA_TOTAL_2 (line 40) Volum= (2*T.^2*q1+q2*T.^3*((1/2-(A1*(A2-A3))/2*C*Ro*G(A1+A2-A3))))

Volum= (2*T.^2*q1+q2*T.^3*((1/2-(A1*(A2-A3))/2*C*Ro*G(A1+A2-A3)))) q2 is 1 x 301. T is 1 x 301. The * operator is algebraic mat...

4 jours ago | 1

| accepted

Answered

read 20 images in ordered manner

See the File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort Or, ...

read 20 images in ordered manner

See the File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort Or, ...

4 jours ago | 0

Answered

error using imfinfo()

Images in memory such as your compareimages do not have a "bitdepth", and cannot be queried with imfinfo() Before you while lo...

error using imfinfo()

Images in memory such as your compareimages do not have a "bitdepth", and cannot be queried with imfinfo() Before you while lo...

4 jours ago | 1

Answered

error; Unable to perform assignment because the left and right sides have a different number of elements.

Vds=0:0.1:5; Vds is a vector of length 51 elseif Vgs(i)>Vt||Vds<(Vgs(i)-Vt) Notice on the right hand side of the || that Vds...

error; Unable to perform assignment because the left and right sides have a different number of elements.

Vds=0:0.1:5; Vds is a vector of length 51 elseif Vgs(i)>Vt||Vds<(Vgs(i)-Vt) Notice on the right hand side of the || that Vds...

4 jours ago | 0

Answered

Input value in Edit text in MATLAB GUI

Use str2double() instead of str2num() .

Input value in Edit text in MATLAB GUI

Use str2double() instead of str2num() .

4 jours ago | 0

Answered

Flower in a image

It is not possible to write code that can count all flowers in an image without counting anything that is not a flower. For ...

Flower in a image

It is not possible to write code that can count all flowers in an image without counting anything that is not a flower. For ...

5 jours ago | 0

Answered

Delimate Table and Rewrite it

table() applied to the results of strsplit is probably giving you a table with one variable and three rows. You need to take ...

Delimate Table and Rewrite it

table() applied to the results of strsplit is probably giving you a table with one variable and three rows. You need to take ...

5 jours ago | 0

| accepted

Answered

How to Remove NaN (missing values) from 3d array, temporally and spatially?

I suggest you look in the File Exchange for inpaint_nans

How to Remove NaN (missing values) from 3d array, temporally and spatially?

I suggest you look in the File Exchange for inpaint_nans

5 jours ago | 1

| accepted

Answered

lisans nasıl alcagız arkadaslar? How do we get a license?

If you are in Turkey, you need to contacte FIGES AS https://www.mathworks.com/company/aboutus/contact_us.html#TR

lisans nasıl alcagız arkadaslar? How do we get a license?

If you are in Turkey, you need to contacte FIGES AS https://www.mathworks.com/company/aboutus/contact_us.html#TR

5 jours ago | 0

Answered

How to let a function know that a variable in another function has been updated?

You do not usually need to notify a function that there has been an update. If the function runs once and stops, then you would...

How to let a function know that a variable in another function has been updated?

You do not usually need to notify a function that there has been an update. If the function runs once and stops, then you would...

5 jours ago | 0

| accepted

Answered

How to convert 3d array to raster (tiff)

surf(lon, lat, precip(:,:,1).'); view(2)

How to convert 3d array to raster (tiff)

surf(lon, lat, precip(:,:,1).'); view(2)

5 jours ago | 0

| accepted

Answered

How do I use randn vs randi vs rand?

rand() : creates uniform random numbers ("with replacement") in the range (0,1) exclusive. To create uniform random numbers in t...

How do I use randn vs randi vs rand?

rand() : creates uniform random numbers ("with replacement") in the range (0,1) exclusive. To create uniform random numbers in t...

5 jours ago | 0

Answered

How to grab message from command window and take action in code depending on it.

Use evalc()

How to grab message from command window and take action in code depending on it.

Use evalc()

5 jours ago | 0

Answered

imcrop function problem for 16bit image 2019b

h = imshow(I, []); [Icrop, rect] = imcrop(h);

imcrop function problem for 16bit image 2019b

h = imshow(I, []); [Icrop, rect] = imcrop(h);

5 jours ago | 0

| accepted

Answered

Question regarding parallel computing

No, the pool will time out after about 30 minutes and it will shut itself down. However, during that time it will continue to ...

Question regarding parallel computing

No, the pool will time out after about 30 minutes and it will shut itself down. However, during that time it will continue to ...

5 jours ago | 0

| accepted

Answered

How do I load the desired columns and rows I want from a csv file?

readtable() with 'HeaderLines', 1 and 'ReadVariableNames', false

How do I load the desired columns and rows I want from a csv file?

readtable() with 'HeaderLines', 1 and 'ReadVariableNames', false

6 jours ago | 0

Answered

i already download MATLAB 2019b and 2013 but i can not find Sinpowersystem in Simulink Library of both auf this two versions

SimPowerSystems was merged with SimElectronics to create Simscape Electrical as of R2018b. None of those were included in the S...

i already download MATLAB 2019b and 2013 but i can not find Sinpowersystem in Simulink Library of both auf this two versions

SimPowerSystems was merged with SimElectronics to create Simscape Electrical as of R2018b. None of those were included in the S...

6 jours ago | 1

Answered

Datastore function can't find files

MacOS and Linux do not use \ as directory separators. You should be using fullfile() files = fullfile(pwd, 'Data', [filenames '...

Datastore function can't find files

MacOS and Linux do not use \ as directory separators. You should be using fullfile() files = fullfile(pwd, 'Data', [filenames '...

6 jours ago | 2

| accepted

Answered

Copying logical from one .m to another

mat2str(NameOfVariable) Should give you a character vector that you can copy and paste

Copying logical from one .m to another

mat2str(NameOfVariable) Should give you a character vector that you can copy and paste

6 jours ago | 0

| accepted

Answered

Hardware board which support MATLAB code for data hiding

There are no hardware boards that support MATLAB source code. You can use MATLAB source code on something like a Surface Pro ta...

Hardware board which support MATLAB code for data hiding

There are no hardware boards that support MATLAB source code. You can use MATLAB source code on something like a Surface Pro ta...

7 jours ago | 0

Answered

Finding and counting of identical rows in a matrix

M = [ 1 300 3500 500 6000 3 200 3000 500 6500 5 150 2500 450 6000 8 400 2000 550 5500 5 200 3000 500 6500 9 150 2500 4...

Finding and counting of identical rows in a matrix

M = [ 1 300 3500 500 6000 3 200 3000 500 6500 5 150 2500 450 6000 8 400 2000 550 5500 5 200 3000 500 6500 9 150 2500 4...

7 jours ago | 0

Answered

I am trying to get the binary key of each letter from my huffman dictionary. How can I do that? I tried pulling them directly from the cells using a for loop. Please help.

The data type of the entries in the second column of the returned dictionary is always double. In your commented out code you h...

I am trying to get the binary key of each letter from my huffman dictionary. How can I do that? I tried pulling them directly from the cells using a for loop. Please help.

The data type of the entries in the second column of the returned dictionary is always double. In your commented out code you h...

7 jours ago | 0

Answered

Quiver plating vectors in given equations of u and v.

dx1dt(q,1) = k(2)*(1/(1+(x2/K(2))^n)) + k(1)*((x1/K(1))^n/(1+(x1/K(1))^n)) - b(1)*x1; x2 is a 31 x 31 matrix, so (1+(x2/K(2))^n...

Quiver plating vectors in given equations of u and v.

dx1dt(q,1) = k(2)*(1/(1+(x2/K(2))^n)) + k(1)*((x1/K(1))^n/(1+(x1/K(1))^n)) - b(1)*x1; x2 is a 31 x 31 matrix, so (1+(x2/K(2))^n...

7 jours ago | 1

| accepted

Answered

How to replace all odd numbers with infinity using find()

locations = find( Value_Is_Odd(C) ); where Value_Is_Odd is a function or expression that you write that takes in an array of va...

How to replace all odd numbers with infinity using find()

locations = find( Value_Is_Odd(C) ); where Value_Is_Odd is a function or expression that you write that takes in an array of va...

7 jours ago | 0

| accepted

Answered

Storing the matrix values in a loop

theta=[-90:15:90]; N=length(theta); [...] for i=1:N m=cosd(theta); n=sind(theta); why bother iterating over the lengt...

Storing the matrix values in a loop

theta=[-90:15:90]; N=length(theta); [...] for i=1:N m=cosd(theta); n=sind(theta); why bother iterating over the lengt...

7 jours ago | 0

| accepted