Answered
Error using size and Error in cross
See the below links to properly use them: https://www.mathworks.com/help/matlab/ref/cross.html https://www.mathworks.com/help...

7 years ago | 0

Answered
Error using sum function
sum(A(:)) % if it doesn't work either upload your matrix as .mat file

7 years ago | 1

| accepted

Answered
plot of inverse laplace of a function
syms t s U=laplace(0.1*exp(2.44*t)); G=(s-2.44)/((s+5)*(s+6)*(s+7)); H=G*U; h=matlabFunction(ilaplace(H)); t=1:0.01:100; p...

7 years ago | 6

| accepted

Answered
Matlab keeps being "busy" when computing the integral of a function
Just convert symbolic integral (int()) to numerical integral (integral()) using matlabFunction() because the symbolic integrator...

7 years ago | 0

| accepted

Answered
How can I handle with replacement of 'do while' loop in Matlab?
https://www.mathworks.com/matlabcentral/answers/115403-do-while-loop-in-matlab#answer_123751

7 years ago | 0

| accepted

Answered
Circle function issue i don;t know why it's not working and giving me the error of undefined function or variable.
[area,cf]=circle(3) % proper calling of the function ^---radius 3 example doc function % read it to know ho...

7 years ago | 1

Answered
Finding and Storing element row-wise when the matrix has SYM.
A=[1 0 0; 7 0 0;4 5 0;3 5 0;1 4 7; 8 2 1]; nonzeros(double(reshape(A',[],1))) ^^^^^^----converts to a double from sym...

7 years ago | 0

| accepted

Answered
Only last legend command is working while using multiple legend command using plotyy
Use yyaxis: n=-180:180; x=(pi/180).*n; y=sin(x); y2=sin(x).*cos(x); y3=cos(x); yyaxis left a=plot(n,y,'k') legend('A') ...

7 years ago | 0

| accepted

Answered
can anyone help me?
Do a matlab online course - onramp (it's free and interactive to work upon): https://matlabacademy.mathworks.com/?s_cid=learn_M...

7 years ago | 0

| accepted

Answered
How do I pass a string as the argument of a function?
doc str2func doc disp

7 years ago | 0

Answered
ode45 returns NAN, HOW could I modify it?
Reduce the time span and increase time steps (or don't put any time step let matlab assume it) for instance from 0 to 1 -> [0 1]...

7 years ago | 0

Answered
Can it be possible to draw Fig. 4 with Pr (0 to 2) on X-axis and for different values of M=0,1,2 OR plot(Nt,-T0(5)) with M=0,1,2
Parameterizing function function main L=-1; fw=0.5; Nb=.5; Nt=.5; Pr=6.2; K=.100; Le=1; R=1; Kc=0.2; for M=0:2 xa...

7 years ago | 0

| accepted

Answered
Generating random integers in MATLab
randi([0 100],1,20)

7 years ago | 1

| accepted

Answered
how to find maximum alement
max(matrix(:))

7 years ago | 0

Answered
find angle between lines
https://www.mathworks.com/matlabcentral/answers/78195-how-to-measure-angle-between-the-lines#answer_87898

7 years ago | 0

| accepted

Answered
Reordering variables in a table array
sortrows() %?

7 years ago | 0

| accepted

Answered
How can I find the smallest element in an array without using the function 'min'??
X = [1,2,4,3,0,-1,-8,9,-2]; for i =1:numel(X)-1 if X(i)>X(i+1) min=X(i+1); else continue ...

7 years ago | 0

Answered
how can i turn "logic2 off in my matlab command window ?
EDITED: In your loop wherever logical statements appear just put semicolon ; at the end of those statements a > b ; ^--...

7 years ago | 0

| accepted

Answered
Invalid text character.
Maxvideo=12; NVideo=2; % Max=13 欲讀取之檔案數量 %RVideo=[7 8]; RVideo=[4 11];%欲讀取之檔 VL=1000; %Video length MaxTime=VL; %NVideo * V...

7 years ago | 0

| accepted

Answered
Too many input arguments.
doc cross % only requires three inputs max where third is the dimension but you used 4

7 years ago | 0

| accepted

Answered
Matlab R2018b cannot check whether builtin function 'addvars.m' exist
https://www.mathworks.com/help/matlab/ref/exist.html#description - reason is given. P.S - I received the same answer as you(201...

7 years ago | 0

Answered
Struct contents reference from a non-struct array object.
clc; img1 = imread('img.jpg'); % just try changing img variable to img1 not sure it would work but just a try imshow(img1); ...

7 years ago | 0

Answered
How make line coding in matlab
You haven't defined any variable named mill. P.S - I have no idea what your trying to do though..

7 years ago | 0

Answered
Error while calculating Cosine distance
To view answer: ClientMean=....your matrix; EvalSet=....your matrix; Distance = CosineDistance(ClientMean, EvalSet) % functi...

7 years ago | 0

| accepted

Answered
how to solve Subscripted assignment dimension mismatch.
an(i,:)

7 years ago | 0

| accepted

Answered
I'm trying to update my 2018b version looking for 2018b Update 1. Where can I find it?
The 2019 pre-release is available already you can just download and use it.

7 years ago | 0

Answered
coloring node and edge of a graph
Easy way create a handle to the graph and just use dot indexing and assign the color for instance red , green .. blabla

7 years ago | 0

Answered
Why I am getting problem with fgets() function in the below code for Seismic Risk Analysis??
Make sure you specify the path of the file when using fopen.

7 years ago | 0

Answered
why nanmean error?
If your using 2018b version just use mean with 'omitnan' as a name pair doc mean % if and only if your using 2018b to use them ...

7 years ago | 1

Load more