답변 있음
How to detect the threshold of a graph
Steps: Find diff of y Find Max of step 1 x=x(find(y==result of step 2)) % If x also required

6년 초과 전 | 0

답변 있음
I want to solve three diffrential equations , I code it and I keep getting errors. Could you tell me why?
No coding error syms s(t) e(t) i(t) t = input('Enter a number please: '); c(t)= 1+ 0.25*cos(2*pi*t); disp(c(t)) eqn1 = d...

거의 7년 전 | 0

답변 있음
Clarification for solve function
syms x; U = 2*x+5; L = 3*x-10; u = 2*(x-1)+5; l = 3*(x-1)-10; U_plus = 2*(x+1)+5; L_plus = 3*(x+1)-10; c = abs(U_plus - L...

거의 7년 전 | 0

| 수락됨

답변 있음
how pad zero in matlab after each element in a row of matrix?
a=repmat([1 0 0 0 0 ],100) %......................^ repeatation Or a=repmat([1 0 0 0 0 0],1,100); You will get resultant ar...

거의 7년 전 | 1

| 수락됨

답변 있음
Error Message: 'Matrix dimensions must agree'
In the following expression s = exp(-n.*omega0.*t).*(A*cos(omegad.*t)); n have length 3 and t have 101, how can you do elemen...

거의 7년 전 | 0

| 수락됨

답변 있음
Renaming files in directory that meet array criterion
Try? text_files=dir('C:\complete_path_text_files\*.txt'); outDirectory='C:\complete_path_to save_txt_files\'; array_data=[.....

거의 7년 전 | 0

답변 있음
How to create a mosaic image for image transmission
See here 6 links Or are you looking for concatenated images?

거의 7년 전 | 0

| 수락됨

답변 있음
Find out the value and index of each column.
Answered this question based on comments by @Zioma "I want to find out the values of each column which are less than 5, then sa...

거의 7년 전 | 0

답변 있음
Transform a set of "if" arguments into a unified "for" function
n_trials=?? % define n_trials n_dice=randi(6,1,n_trials); Z=n_dice*randi(6,1,n_trials);

거의 7년 전 | 0

답변 있음
do while in matlab
% Stage A while 1 A1=Zmed-Zmin A2=Zmed-Zmax if A1>0 && A2<0 break; else ...

거의 7년 전 | 0

| 수락됨

답변 있음
how to numerically define 1/x^2+0.4/(60-x)^2
x=10; %define x, here is just an example I=1/x^2+0.4/(60-x)^2

거의 7년 전 | 0

답변 있음
store mask created from roipoly on scans running in for loop, in new variable
You can store the mask in cell array and later call any mask as per requiremnets. n=?? % define mask=cell(1,n) for i=1:n %...

거의 7년 전 | 0

| 수락됨

답변 있음
Haw can I calculate the difference between two points in a plot?
You can do that in number of ways If you know the corresponding x values of A and B,let say d1 and d2 them idx1=find(x==d1); ...

거의 7년 전 | 1

답변 있음
Summing data columns in a series
I want to raise them to the power of K and sum the using sigma notation from k=1 to 10 k=?? % define Data=Datacolumn1.^k+Data...

거의 7년 전 | 0

답변 있음
How can I calculate the MSE between 2 images?
ref=imread('birdmiddle.png'); A=imread('birdmiddle2.png'); err = immse(A, ref); fprintf('\n The mean-squared error is %0.4f\n...

거의 7년 전 | 0

답변 있음
Comparision of a matrix to a value
a=[7 8 8 ;5 3 2 ;1 2 3;7 6 5]; b=5; result=a>b

거의 7년 전 | 0

| 수락됨

답변 있음
curl with symbolic vector
The answer defined in this way: syms Fx(x,y,z) Fy(x,y,z) Fz(x,y,z) curl([Fx Fy,Fz],[x, y, z]) Result: ans(x, y, z) = diff(...

거의 7년 전 | 0

| 수락됨

답변 있음
what is Activation key or license and how to get it?
Are you asking for Matlab Software? If then please see the Get MATLAB tab icon (Top Right corner in this page) and Contact us b...

거의 7년 전 | 0

답변 있음
How can I recombine two color channels after separating all the channels?
Is this? color_image(:,:,2:3); % Having only two colors plane or color_image(:,:,1:2); or color_image(:,:,[1,3]);

거의 7년 전 | 0

| 수락됨

답변 있음
how to generate correlation matrix with panel data?
Read the excel file Read the columns as column vectors, say col1,col2 etc Here, next result=corrcoef(col1); % so on If pair...

거의 7년 전 | 0

답변 있음
How can i plot each line with different colors
Try plot(TimeData,PlotData','color',C{randi(1,5)},'DisplayName',SelectedELU{r}); Another? Have tou tried with hold on and plo...

거의 7년 전 | 1

답변 있음
How to convert a cell into column vector
Here result represents resultant A A=35.2; result=repelem(A,150) If A is the single cell arrray then A={35.2}; result=repe...

거의 7년 전 | 0

| 수락됨

답변 있음
common Y labal for subplot
Here https://in.mathworks.com/matlabcentral/answers/317823-common-y-label-for-multiple-subplots-in-matlab More (Just change f...

거의 7년 전 | 0

| 수락됨

답변 있음
Solving a for loop
I did not find the exact logic, as Vnem length 201 and Erev is 3 Is this? for j=1:length(Vmem) V1(j)=Vmem(j)-Erev(1); %Drivi...

거의 7년 전 | 0

답변 있음
Error using plot Vectors must be the same length.
No Error

거의 7년 전 | 0

| 수락됨

답변 있음
code returns multiple "ans" instead of array
i have been asked to not use an preexisting fucntions to do it Here I have used some basic functions only, may be allow, the fo...

거의 7년 전 | 0

답변 있음
How to save automatic a plot via command?
%Generate_figure saveas(gcf,'file_name.png'); The figure will save as png image format in the same working directory For mult...

거의 7년 전 | 0

| 수락됨

답변 있음
Could anyone help me to plot this integral function?
Is this, as @darova rightly mentioned, it give one value how do you plot, which requires vectors? syms t f_t=@(t)(0.217+0.259...

거의 7년 전 | 2

| 수락됨

답변 있음
Replacing elements in a vector
Replacing elements in a vector Lets row vector is data. "As in all elements=60 should be replaced with 1" data(data==60)=1; ...

거의 7년 전 | 0

더 보기