Réponse apportée
Finding the minima or maxima point on a graph
You can find local min islocalmin (first return array) or #Example x=1:100; c=2; m=3; y=m*x+c; data1=find(y==min(y)...

plus de 6 ans il y a | 0

Réponse apportée
What is the meaning of this line?
"why 2 times sumX2 and what is the purpose of using 2times and can anyone do let me know?" sumX2=sumX2+... Here sumX2 updated ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Plotting only highest peaks from multiple signals
fs = 2e3; t = (0:1/fs:1-1/fs)'; A= sin(2*pi*19*t); B= chirp(t-0.6,61,t(end),603,'quadratic'); C=cos(2*pi*19*t); peakSig= ma...

plus de 6 ans il y a | 1

Réponse apportée
Search subarray closest other array
One way: A = [4, 5.5, 7, 8.1, 1, 5, 6, 7, 8, 9]; B = [5.5, 6.2, 7, 7.9]; for i=1:length(A)-4 result(i)=sum(A(i:i+3)-B); ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Integration over function between two limits
syms x f_x=@(x) sin(x) q = integral(f_x,0,pi)

plus de 6 ans il y a | 0

Réponse apportée
matrix summation inside loop
#Without Loop Recomended syms i F_result=symsum((cos(q1)+cos(q2))*i,i,1,100) More detail, please check here কল্যাণ :)

plus de 6 ans il y a | 0

Réponse apportée
Switch case transition statement
I assume you have multiple cases n=input('Enter the case number: '); switch n case 1 if Conditionstatemnet/If this is tr...

plus de 6 ans il y a | 0

Réponse apportée
The end part of a set of cell arrays without loop
aa{end}

plus de 6 ans il y a | 0

Réponse apportée
I want to check the list [2:N] for values that are devisible by 2 and remove those from the list, help plz
N = 10; list=2:N list(find(mod(list,2)==0))=[] Result: list = 2 3 4 5 6 7 8 9 10 list ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Transfering results form one function to another one
"how i can take values from one function to another one?" Its nesting of function, just call the 1st function to the 2nd functi...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How do I do random integers between (100*pi and 200*pi)?
100*pi or 200*pi are not integers >> 100*pi ans = 314.1593 For randi case randi([IMIN IMAX],1); here the input must be a...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
how to define time matlab for bar graph
ChargeTime=[14.25;14.30;14.35;14.40;14.45;14.50;14.55;15.00; 15.05;15.10;15.15;15.20;15.25;15.30;15.35;15.40;15.45;15.50; ...

plus de 6 ans il y a | 1

Réponse apportée
How to name point on plot?
text(x,y,txt) x,y represent the data point, see detail here

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Compare nearby elements in array
"I have an array with around 500 x 500 elements" Please note that you have mentioned about 2-D array , Here I have considered ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
arithmatic progression in array
array_data=0:0.05:1

plus de 6 ans il y a | 0

Réponse apportée
how to put a ruler in an image?
im=imread('Spray1.png'); imagesc(im); ylim([0 100]); set(gca,'XTick',[]) More: All ticks 0,10,20.....100 im=imread('Spr...

plus de 6 ans il y a | 0

Réponse apportée
repeat many time same script
As per knowledge, your above stated direction is best. Save the code as new function file say fun1 In the Main script use loop...

plus de 6 ans il y a | 0

Réponse apportée
How to concatenate arrays of different size in a loop?
How to concatenate arrays of different size in a loop? result=0; for i=1:iter_num x_new= % array New generation result=[res...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
How to assign variables based on index position
One way: a = [1 1 1 1 1.6 1.1 1.1 1.6 1.1 1.1] result=find(a > 1.5) Now access the result data as result(1) and result(2) ...

plus de 6 ans il y a | 0

Réponse apportée
Storing the output of a program in a matrix
No need to run another program to save the output of progA in array. Just do the indexing in progA, its automatically generates ...

plus de 6 ans il y a | 0

Réponse apportée
Selecting numbers in matrix that are repeated
[N,edges]=histcounts(A,unique(A)) result_array=edges(N>1)

plus de 6 ans il y a | 1

Réponse apportée
erreur in imshow ?
#No Error I = imread('cameraman.tif'); I2 = imresize(rgb2gray(imread('onion.png')),[size(I,1),size(I,2)]); ImLength = size(I...

plus de 6 ans il y a | 0

Réponse apportée
Converting disp answers to vector/str2num
fprintf

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
arrays within for loop
for k=1:4 S(k)=(1/(k+1))*(m-b*y-m*r); % How to get y here? I(k)=(1/(k+1))*(a*e-(m+r)*i); end S=sort(S); I=sort(I,'d...

plus de 6 ans il y a | 0

Réponse apportée
writing code so that for loop does not overwrite
#Edited neuronno(t) = find (selectiven); As the t indices starts from 43 till 53. Here what about the previous indexing? Bett...

plus de 6 ans il y a | 0

Réponse apportée
How to fill the blank regions within blood vessels?
If I am not mistaken, I have answered this question some time back. Steps: Invert (So that the target black pixels become tiny...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
change color of an object
"change color of an object" or "for example I have to optain pink strawberry" Please change those values, you will get the diff...

plus de 6 ans il y a | 1

Réponse apportée
Calling a function and saving all the data in same matrix
when I try to save the function in the three variables [alpha, A_Val, BB_Val], I am only getting the final (last) result, Though...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Plot Straight Line Segments
line([0,100],[20,100])

plus de 6 ans il y a | 2

Charger plus