Answered
Using ismember for each row
https://in.mathworks.com/matlabcentral/answers/453067-using-ismember-for-each-row#comment_687094

7 years ago | 1

| accepted

Answered
Replace zeros with a number
UB(UB==0) = 0.02; % why not UB = 0.02*ones(N,1) % in the first place?

7 years ago | 0

Answered
How can I generate k number of row vectors extracted from a k×l matrix using a simple loop
x = num2cell(M,2); % or x = reshape(M,1,size(M,2),[])

7 years ago | 1

Answered
How to define data array in simulink

7 years ago | 0

Answered
could anyone help me to overcome the error in the following code
maxk() was introduced in 2017b so if you are using version prior to it use: 1) sort() row wise in descending order. 2) Jus...

7 years ago | 0

Answered
Table - Write results in a new rows
doc array2table

7 years ago | 0

Answered
how to select highest three maximum values from each row of an matrix
Use the same answer I gave you in your previous question. doc maxk % read it

7 years ago | 0

Answered
how to select the top 5 five values in a matrix
maxk(A(:),5) % gives the max 5 values of entire matrix %or max(A,[],2) % gives max of each row (finally resulting with 5 valu...

7 years ago | 0

| accepted

Answered
hi every one ,
Use min() for the vector C to get D vector. doc min % read it

7 years ago | 1

| accepted

Answered
Not sure why I get a 'output argument "...." (and maybe others) not assigned during call to [function name]'
function triangle = tri_area(b,h) triangle = 0.5*b*h ; %^^^^^^^^^------ missed it! end doc function % please read it Note: ...

7 years ago | 1

| accepted

Answered
Solve and plot the phase portrait for van der pol ODE with time dependent term
g,lambda %^—-missed it Don’t name variable lambda (will shadow in-built function gamma())

7 years ago | 1

Answered
Jacobain with 3 functions
https://in.mathworks.com/help/symbolic/jacobian.html - the function has to have symbolic arguments as mentioned in the link abov...

7 years ago | 0

| accepted

Answered
Vectorize strcat and str2num for loop
See if this is faster than a loop: columns * 1e4 + frames

7 years ago | 1

| accepted

Answered
plot function in a specific interval while the other interval function is equal to zero
See if this helps to understand how to solve your homework: t=1:.1:10; g=t.^2.*(t>=1 & t<5) + t.*(t>=5 &...

7 years ago | 0

Answered
How can i create matrix using vectors
Firstly you shouldn’t have named the vectors , it would have been easier if you would have stored them as cells in the first pla...

7 years ago | 0

Answered
Fill one vector with zeros when another vector is zero
A2=A.*(B~=0)

7 years ago | 0

| accepted

Answered
How to filter a matrix Row by Row to get the highest value?
See if this satisfies your needs: C = zeros(size(A)); for k = 1:size(A,1) B = reshape(A(k,:),2,[]).'; G = findgroups...

7 years ago | 0

| accepted

Answered
wK = w0(:);
https://in.mathworks.com/help/matlab/ref/colon.html - (:) forces a matrix or a row vector as a column vector

7 years ago | 0

Answered
x=linspace(0,pi,100) and x=0:0.01:pi
linspace creates vector from to 0 to pi with 100 numbers The other creates a vector with a step .01. Please read the belo...

7 years ago | 1

Answered
2 graphs on same plot
syms x S3(x)=-0.0196*x^2+0.2974*x+9.1157 ; fplot(S3,[.1,2]) hold on S3(x)=-0.9288*(x-1)^3+0.619*(x-1)^2+0.548*(x-1...

7 years ago | 0

Answered
eliminate関数が使えるR2018a以前の代わりの関数などはありますか.
As far as I know Mupad is one alternative I can think of <https://in.mathworks.com/help/symbolic/mupad_ref/groebner-eliminate.ht...

7 years ago | 1

Answered
How can i assign a value for this type of datas?
V(find(A==1,1,'first')) % V is your referenced vector

7 years ago | 1

| accepted

Answered
Simulink quesstion with using fnc block
function Vs = fcn(Vp,Zw,N,Zl)

7 years ago | 0

| accepted

Answered
how to solve many polynomial equations listed in a matrix?
Roots = arrayfun( @(x) roots( A( x, : ) ), 1 : 4, 'un', 0 ); [ Roots{ : } ].'

7 years ago | 2

| accepted

Answered
How can I cut a vector?
vector(1 : 5547)

7 years ago | 5

| accepted

Answered
Hi, how do i import a text file as column vectors?
I have no idea what you are doing but see if this atmost cares your needs: T = readtable('Stations.txt'); T{:,3} % to access t...

7 years ago | 0

| accepted

Answered
Change a 3x100 double to a 300x1 double
reshape(a.',[],1) % a is of size 3 X 100

7 years ago | 0

| accepted

Answered
How do I get Matlab to draw a graph with solutions to an equation? I tried making matlab draw a graph for a multivariable equation, but I can't figure out how to. Tried to make an array of solution then plot it, but it didn't work.
<https://in.mathworks.com/matlabcentral/answers/451955-how-do-i-get-matlab-to-draw-a-graph-with-solutions-to-an-equation-i-tried...

7 years ago | 0

Answered
keep index of omited array
find(N==2)

7 years ago | 0

| accepted

Answered
Undefined function or variable 'equationsToMatrix'.
https://in.mathworks.com/help/symbolic/equationstomatrix.html#bteza8k_seealso - released in 2012 b (requires symbolic math toolb...

7 years ago | 0

Load more