Réponse apportée
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

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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=[.....

presque 7 ans il y a | 0

Réponse apportée
How can I make matlab read my text document row by row and produce a nx1 matrix?
textscan

presque 7 ans il y a | 0

Réponse apportée
How to create a mosaic image for image transmission
See here 6 links Or are you looking for concatenated images?

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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);

presque 7 ans il y a | 0

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

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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

presque 7 ans il y a | 0

Réponse apportée
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 %...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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); ...

presque 7 ans il y a | 1

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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(...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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]);

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 1

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
Error using plot Vectors must be the same length.
No Error

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
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; ...

presque 7 ans il y a | 0

Charger plus