답변 있음
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)...

6년 초과 전 | 0

답변 있음
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 ...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 1

답변 있음
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); ...

6년 초과 전 | 0

| 수락됨

답변 있음
Integration over function between two limits
syms x f_x=@(x) sin(x) q = integral(f_x,0,pi)

6년 초과 전 | 0

답변 있음
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 কল্যাণ :)

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

답변 있음
The end part of a set of cell arrays without loop
aa{end}

6년 초과 전 | 0

답변 있음
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 ...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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; ...

6년 초과 전 | 1

답변 있음
How to name point on plot?
text(x,y,txt) x,y represent the data point, see detail here

6년 초과 전 | 2

| 수락됨

답변 있음
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 ...

6년 초과 전 | 1

| 수락됨

답변 있음
arithmatic progression in array
array_data=0:0.05:1

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 2

| 수락됨

답변 있음
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) ...

6년 초과 전 | 0

답변 있음
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 ...

6년 초과 전 | 0

답변 있음
Selecting numbers in matrix that are repeated
[N,edges]=histcounts(A,unique(A)) result_array=edges(N>1)

6년 초과 전 | 1

답변 있음
erreur in imshow ?
#No Error I = imread('cameraman.tif'); I2 = imresize(rgb2gray(imread('onion.png')),[size(I,1),size(I,2)]); ImLength = size(I...

6년 초과 전 | 0

답변 있음
Converting disp answers to vector/str2num
fprintf

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 1

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
Plot Straight Line Segments
line([0,100],[20,100])

6년 초과 전 | 2

더 보기