Answered
How to stop the ODE45 at a defined condition during its execution ?
see <https://www.mathworks.com/matlabcentral/answers/428770-why-isn-t-matlab-counting-this-as-equal-to-1> for comparing float n...

8 years ago | 0

Answered
accessing data from cell arrays
A{1,2}(:,5)

8 years ago | 0

| accepted

Answered
My boundary condition is this f'(+inf) == -1 ; But matlab shows some error. can anyone help me in fixing this
syms f(t) df = diff(f,t) ; d2f = diff(df,t) ; d3f = diff(d2f,t) ; ode = d3f+df*d2f == 0 ; cond = d2f(sym('inf...

8 years ago | 0

| accepted

Answered
Extrapolating from linear fit
<https://www.mathworks.com/help/matlab/ref/interp1.html#btw2a2x> <https://www.mathworks.com/help/matlab/ref/interp1.html#btwp...

8 years ago | 0

Answered
How do I create a "function function"? How do you make a function that accepts another arbitrary function as an input argument?
<https://www.mathworks.com/matlabcentral/answers/428593-i-have-a-problem-with-the-nested-function#answer_345736> <https://www...

8 years ago | 0

Answered
How to plot line spectrum in matlab ?
<https://www.mathworks.com/help/matlab/ref/fft.html *FFT*>

8 years ago | 0

Answered
How to count how many zeroes and to remove the zero scortes and names associtated with those scores
Second part of the question example: s.a=[0 1] s.b=[03 0] structfun(@nonzeros,s(1))

8 years ago | 0

Answered
simple doubt about vector
a=randi(5,1,7) a(a==1)=10

8 years ago | 1

| accepted

Answered
I can't bring powerpoint presention in matlab
You can create presentations even from matlab : <https://www.mathworks.com/help/rptgen/ug/mlreportgen.ppt.presentation-clas...

8 years ago | 0

Answered
For loop for roots function
r=cell(1,12); for i=1:12 p = [a(i) b(i) c(i) d(i)] r{i} = roots(p); end celldisp(r)

8 years ago | 0

| accepted

Answered
How to randomly pick number from the vector and assign it to the element from the struct vector?
x=1:500 newvec=x(randsample(1:numel(x),1,1))

8 years ago | 0

Answered
How to move files with name containing 1,7,13, 1+6n to a new folder?
see <https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html#responsive_offcanvas *Processing seque...

8 years ago | 0

Answered
Why isn't MATLAB counting this as equal to 1?
if abs(sum(total-1)) < 1e-4 %edited The above is equivalent to if sum(total)==1

8 years ago | 1

Answered
is there any way to parse the matlab code ?
<https://www.mathworks.com/help/matlab/debugging-code.html>

8 years ago | 0

Answered
How to return corresponding element in two same same size matrices
a=rand(4) %fake datas as an example b=rand(4) [values,indices]=min(a) b(indices)=a(indices) %correspondi...

8 years ago | 0

Answered
How made the code as easy?
P(Q)=[] %edited after Jan's comment

8 years ago | 2

| accepted

Answered
how to create a vector inside a loop?
a=1:10; %an example i = 1; while i<=numel(a) b(i) = a(i).^2; %(i) in order to avoid overwriting i=i+1; ...

8 years ago | 0

Answered
Table column formatting to display decimals
double change to float and see what happens?

8 years ago | 0

Answered
Error message when plotting network graph in 2018a
Couldn’t produce that error in 2018b so try clear all at the very beginning and try again

8 years ago | 0

Answered
How can I solution matlab crash
As the error message states: "_If this problem is reproducible, please submit a Service Request via: <http://www.mathworks.co...

8 years ago | 0

Answered
How to write the script file for the following questions.
<https://www.mathworks.com/help/matlab/ref/cumsum.html> <https://www.mathworks.com/help/symbolic/cumsum.html>

8 years ago | 0

Answered
how to plot a log scale twice in "vertical" axis and only once in x axis?
<https://www.mathworks.com/matlabcentral/answers/26302-log-log-plot> <https://www.mathworks.com/matlabcentral/answers/278077-...

8 years ago | 0

Answered
How to horizontally concatenate the cells of a cell array with different contents into a string.
c={{[ 550]} {[2]} {'GAM'} {[ 600]} {[2]} {'GAM'}} c=cellfun(@string,c) join(c) *command window:* ...

8 years ago | 1

| accepted

Answered
I need the formulas to get radius and x/y-coordinates of a circle, which intersects 2 given points (x1/y1 and x2/y2) and a given tangent slope (y=m*x+b).
<https://www.mathworks.com/matlabcentral/answers/170096-calculating-coordinates-for-inner-transverse-common-tangent-points#answe...

8 years ago | 0

Answered
how to convert UTC time hour to Indian local time (IST) ?
<https://www.mathworks.com/matlabcentral/answers/330990-how-to-convert-utc-timehour-into-ist-time-hour#answer_259625> <https:...

8 years ago | 0

| accepted

Answered
Matrix manipulation problem under MATLAB and swapping values
sw = [0.0890 0.5520 0.4880 0.3980 0.3390 0.3860 0.2030 0.2870 0.2950] ...

8 years ago | 1

Answered
How to plot 5 variables in one graph?
plot(x,y1) hold on plot(x,y2) ...

8 years ago | 0

Answered
How can i plot y = 1/x*(x-1) ?
syms x fplot(1/(x*(x-1))) or fplot(@(x)1/(x*(x-1)))

8 years ago | 0

| accepted

Answered
3dplot by file .dat?
a=load('sample.dat') plot3(a(:,1),a(:,2),a(:,3))

8 years ago | 0

Answered
How to save a text file as a .mat file?
Matrix=load('sample.txt') %assuming text file is numeric save sample.mat Matrix

8 years ago | 0

Load more