Answered
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 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 1

| accepted

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

6 years ago | 0

| accepted

Answered
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=[.....

6 years ago | 0

Answered
How to create a mosaic image for image transmission
See here 6 links Or are you looking for concatenated images?

6 years ago | 0

| accepted

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

6 years ago | 0

Answered
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);

6 years ago | 0

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

6 years ago | 0

| accepted

Answered
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

6 years ago | 0

Answered
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 %...

6 years ago | 0

| accepted

Answered
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); ...

6 years ago | 1

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

6 years ago | 0

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

6 years ago | 0

Answered
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

6 years ago | 0

| accepted

Answered
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(...

6 years ago | 0

| accepted

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

6 years ago | 0

Answered
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]);

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 1

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

6 years ago | 0

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

Answered
Error using plot Vectors must be the same length.
No Error

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 2

| accepted

Answered
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; ...

6 years ago | 0

Load more