Answered
How do i get my graph to produce a straight line other than just points? Thanks.
t=0:1:25; v = zeros(1,numel(t)); %PRE-ALLOCATION for i = 1:numel(t) if t(i)<5; v(i)=(0.1553567*t(i)^6)-(2.041...

8 years ago | 0

| accepted

Answered
Create a vector by selection randomly vectors
*EDITED* A=[1 2 3 4 5]; B=[0 2 5 6 19]; C=[0 0 1 3 0]; D=[1 0 1 15 0]; vectors = [A;B;C;D]; n = 10 ; ...

8 years ago | 0

Answered
How to change the number of digits that matlab displays using fprintf
fprintf('%.16e',pi) values = sprintf('%.16e %.2g %f %.2f', pi*50*ones(1,4))

8 years ago | 0

| accepted

Answered
How to read a column named by some header in data file?
Use T=readtable('data.txt'); T.Time %finds column header with Time ^^^^|_____________________________________...

8 years ago | 1

| accepted

Answered
function instead of discretize
might help: <https://www.mathworks.com/matlabcentral/answers/312828-substitute-for-discretize-command#answer_243776>

8 years ago | 0

| accepted

Answered
check for decrease and increase
x=[100:-5:0] %an example issorted(x,'strictdescend') %to check if they are sorted abs(diff(x))==5

8 years ago | 1

Answered
Find the most common string out of all the strings
s={s1 s2 s3 s4 s5 s6} strtrim(mode(char(s)))

8 years ago | 1

Answered
How to do curve fitting with differential equation?
<https://www.mathworks.com/matlabcentral/answers/132238-how-to-fit-experimental-data-on-only-one-ordinary-differential-equations...

8 years ago | 0

Answered
Why is it showing: Undefined function or variable 'removeStopWords'.
An example of the correct usage as <https://www.mathworks.com/help/textanalytics/ref/tokenizeddocument.removestopwords.html *doc...

8 years ago | 0

Answered
Help with Array Induces (left and right side are incompatible)
k = cell(1); % before loop k{i}=B(1,:) %change this

8 years ago | 0

| accepted

Answered
How to plot something like this??
<https://www.mathworks.com/matlabcentral/answers/368029-how-to-sketch-the-following-signal-x-t-3u-t-10-4u-t-3-r-t-2-4r-t-2u-t-2-...

8 years ago | 0

| accepted

Answered
Accessing Elements of an output of an extrinsic call
might help: <https://www.mathworks.com/matlabcentral/answers/122167-subscripting-into-an-mxarray-is-not-supported#answer_1293...

8 years ago | 0

Answered
How can I represent these graphs as vectors?
figure(1) t1=0:0.01:3; h=ones(size(t1)); h(t1==3) = 0; plot(t1,h,'-b') xlim([0 4]) ylim([0 2]) figure...

8 years ago | 0

| accepted

Answered
How can Phased Array System Toolbox be added in MATLAB ?
1)go to Matlab application 2) home 3) adds-on 4)search for <https://www.mathworks.com/products/phased-array.html *pha...

8 years ago | 3

| accepted

Answered
Error :RelTol must be a positive scalar.
options=odeset('RelTol',1e-3,'AbsTol',1e-4);

8 years ago | 0

| accepted

Answered
no input, two output function
[X,Y] = myfunct % try calling it with two outputs function [X,Y] = myfunct X=[1;2;3]; Y=[1;2;3]; plot(X,...

8 years ago | 0

| accepted

Answered
Passing multiple variables to function in 1 input
<https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval>

8 years ago | 0

| accepted

Answered
How can I flip a row vector without using flip(lr) function?
A=[1 2 -3 4] B=wrev(A)

8 years ago | 0

Answered
Hey please i need help with this. if i have these vectors Er=1:3; Ei=0.12.*Er; W=1:0.1:10; how do i generate a vector z based on its relation with W using a for loop in matlab? z={Ei*sin(W) for W<=1 , z={Ei*cos(W) for W>1
Er=1:3; length(Er)=3; Ei=0.12.*Er; W=0:0.1:10; % I suspect W should start from 0 because of the conditions z=cell(...

8 years ago | 0

| accepted

Answered
more convenient way to present a result of a symbolic calculation
Use pretty(sol) Or if you use live editor you can see the result like the one in your question

8 years ago | 0

| accepted

Answered
I have been faced with the 'Index exceeds array bounds' while graphing.
Tr=0.85:0.05:1; MV= 0.15:0.02:1.75 Pr=zeros(length(Tr),81); Tr=0.85:0.05:1; MV= 0.15:0.02:1.75; %Range of...

8 years ago | 0

| accepted

Answered
How can I calculate the area between two curves?
<https://www.mathworks.com/matlabcentral/answers/415982-how-to-calculate-areas-between-two-curves#answer_333875 *Answer*> taken ...

8 years ago | 0

Answered
Array indices must be positive integers or logical values Error
t= linspace(0,99); for i = 1:numel(t) C_1=x0; C_2=x0_dot+(Wn*x0); x(i)= (C_1 + (C_2*t(i)))*exp(-Wn*t(i)); end ...

8 years ago | 0

| accepted

Answered
How to find the indices of a matrix element that is inf or NaN?
See <https://www.mathworks.com/matlabcentral/answers/789-using-find-in-a-3d-matrix-in-matlab#answer_1138> r represents row ...

8 years ago | 2

| accepted

Answered
How to plot fsolve resulting array of answers....
plot(valxy)

8 years ago | 0

| accepted

Answered
Is there any way to convert "*" to ".*"?
Simple answer is you can't

8 years ago | 1

Answered
How to solve for multiple roots
syms x e1=tan(x)==(3*x)/(3+(60.5*(x^2))) vpasolve(e1,x,1)

8 years ago | 8

Answered
How to convert a equation to double
vpa((166694427977015*x)/140737488355328 - 5524692416291113/36028797018963968,3)

8 years ago | 2

| accepted

Answered
How to solve Not enough input arguments of zeros? What should input?
ghist = HoG1( Im, Ip, nbin ) %at the beginning

8 years ago | 0

Answered
I can't download trial version of Matlab ;/
As the error message states contact Mathworks support team by clicking the <https://www.mathworks.com/company/aboutus/contact_us...

8 years ago | 0

Load more