Answered
how do i create a program that tell me how many numbers i got after point in A decimal number?
https://www.mathworks.com/matlabcentral/answers/184255-how-to-calculate-digits-after-decimal-point#answer_172122 https://www.m...

7 years ago | 0

| accepted

Answered
How do I let a user choose what variable they want to assign a value to?
There's already one requires symbolic math toolbox : https://www.mathworks.com/help/symbolic/symunit.html Use input() or just ...

7 years ago | 0

Answered
Undefined function or variable 'activations'
suspect activations hasn‘t been defined nor is a function , check it whos activations % to see if a variable which activation...

7 years ago | 0

Answered
Can I run multiple sets of simultaneous ODEs using ODE45
+1 interesting question , see parameterizing function , ofcourse you can run a loop and just index the initial conditions with ...

7 years ago | 0

Answered
Why doesn't get a numerical value
Use should use subs() all at once (instead your variables are still symbolic) but below is another work around : %此处如果不行可以单独拿出...

7 years ago | 0

Answered
Error- Not enough input arguments when tried to plot data extracted from a table
Just a guess: Freq = str2double(Data{2:121,3}); ExpectedPow = str2double(Data{2:121,6}); plot(Freq,ExpectedPow)

7 years ago | 0

Answered
This is what is appearing on my screen. How can this be solved
Make sure t_psse_case.raw file is in the current working directory and the folder contains that file , perhaps it's somewhere th...

7 years ago | 0

Answered
how can I solve this problem?
There is no such in-built function as test_matpower. So probably you would have to define such a function or search in file exch...

7 years ago | 0

Answered
Regarding using a function to control a servo motor via Arduino
I believe the communication between the servo and the arduino is not set right.

7 years ago | 0

Answered
csvreadで有効数字を増やすには?
format long % at the beginning of your code doc format % read it doc dlmread doc readtable

7 years ago | 0

| accepted

Answered
Matlab is returning error "Argument must contain a string." when using "save"
See https://www.mathworks.com/matlabcentral/answers/236354-saving-mat-files-in-a-for-loop#answer_190339 https://www.mathwork...

7 years ago | 1

| accepted

Answered
I have plotted a vector field using ' quiver ' but it is having same color for all vectors, I want to draw a vector field which is having different colors according to magnitude of vector. How to draw it ?
Download the file exchange below : https://www.mathworks.com/matlabcentral/fileexchange/3225-quiverc

7 years ago | 1

| accepted

Answered
set size of axes in cms
You have to try it out haven't tested it : https://www.mathworks.com/help/matlab/creating_plots/automatic-axes-resize.html

7 years ago | 0

Answered
numerically solve equation sets with given inputs range
syms theta1 theta2 theta3 theta4 e1=cos(theta1)*cos(theta2)-sin(theta3)*sin(theta4)*0.44 == 0; e2=-cos(theta1)*sin(theta2)*0.8...

7 years ago | 0

Answered
How to use for loop to find the sort of the array provided that the order is row row
Just use sortrows()% no loops needed

7 years ago | 0

Answered
Weird behavior regarding pi in symbolic expressions
Usually to convert symbolic to double vpa() % is a workaround

7 years ago | 1

Answered
iam trying to put a solution for an equation that requires iterations to be solved ,, but the error is ((Failure in initial objective function evaluation. FSOLVE cannot continue))
You haven't optimised y in Iteration_function_2 which leads to the error , also it's hard to guess that because there are lots o...

7 years ago | 0

Answered
How to find NaN in a matrix and delete it?
a=[1 2 3 NaN]; %an example a(isnan(a))=[]

7 years ago | 1

Answered
Symbolic Expression Sum Same Denominator
simplifyFraction() syms a b c eqn = (3*a)/8 + (3*b)/8 + c/4 simplifyFraction(eqn,'Expand',1) % the best way to simplify a fr...

7 years ago | 0

Answered
Accessing data from multiple excel files and loading it into a single variable
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html

7 years ago | 0

Answered
How to make simpler this at 'if condition'?
a = rand(6,9) % some data to test ii = 6 % according to our expectation the result should be the second column if ii < 5 a...

7 years ago | 1

Answered
live script font size
https://www.mathworks.com/matlabcentral/answers/271564-how-do-i-change-font-size-for-live-scripts#answer_290972 for Windows , ...

7 years ago | 0

Answered
How to extract audio from MP4?
https://www.mathworks.com/help/vision/ref/vision.videofilereader-system-object.html

7 years ago | 0

Answered
Error using xlsread.
doc xlsread % second argument specifes the worksheet to be read

7 years ago | 0

Answered
Error using xlsread.
Make sure the search path contains the file you need: 'F:\KI Lab\matlab程式 (2)\code\ConflictCasesC1-0418-1.xls' % recheck it if ...

7 years ago | 0

Answered
At least one END is missing: the statement may begin here.
See https://www.mathworks.com/help/matlab/ref/if.html (to better understand about if statements), when an if condition is used i...

7 years ago | 1

Answered
solving integral equation with differential function
syms B(t) f=1000; T=1/f; fun=((diff(B,t).^2))==0; B=dsolve(fun); Q=integral(matlabFunction(B),0,T);

7 years ago | 0

| accepted

Answered
How to get Random numbers only from -1 1 and 2?
P=[-1 1 2]; A=P(randi([1 numel(P)],1,100))

7 years ago | 2

Load more