Answered
I need this Matlab code due to 12-11 please answer!!
doc roots doc coeffs doc syms

7 years ago | 0

Answered
Solving non linear equation for x
syms x x=vpasolve((x.^2.*log(0.4956./x) == (1-x).^2.*log(0.47198./(1-x)))) Gives: x = 0.52091005935042057378274263984089 - 1...

7 years ago | 0

Answered
Why I cannot use symsum on a function with a matrix that has an index a variable ?
You cannot index a variable using a symbolic variable D(g,l) ^----here

7 years ago | 0

Answered
Ans given as 125*pi, how to change?
vpa(answer)

7 years ago | 0

| accepted

Answered
Call a Matrix inside another Script
Just call it in the main.m script function psm_q=psm_q_func() q1=pi/3; q2=pi/3; q3=0.1; q4=pi/3; q5=pi/3; q6=...

7 years ago | 0

| accepted

Answered
How do I make EXTRAPVAL a scalar?
EDITED [Y,Z]=meshgrid(5:5:35,10:5:90); cl=reshape(v,17,7); cd=reshape(w,17,7); bal=reshape(x,17,7); prompt='What is the fro...

7 years ago | 0

Answered
Trying to create a plot with a line as shown in the pictures
use 'b' as marker instead of 'x'

7 years ago | 0

Answered
How to remove the first element of 13 * 20 array which is of data type Double?
You can't have holes in a matrix but instead you can replace the value

7 years ago | 0

Answered
[Log plot] How to make variable tick format (major in 10^%d format, minor in %d format)?
https://in.mathworks.com/matlabcentral/answers/157118-how-to-add-minor-ticks-on-loglog-plot?s_tid=answers_rc1-1_p1_MLT alternat...

7 years ago | 0

Answered
How do I manipulate specific elements in a cell array?
cell2mat(cellarray)

7 years ago | 0

| accepted

Answered
Unable to access toolbox functions? Undefined function or variable 'Skew'.!
https://in.mathworks.com/help/stats/skewness.html https://in.mathworks.com/help/robust/ref/skewdec.html - requires ROBUST CONT...

7 years ago | 0

| accepted

Answered
Error installing Support Package for Arduino
https://in.mathworks.com/matlabcentral/answers/385789-why-do-i-encounter-a-received-fatal-alert-protocol_version-when-installing...

7 years ago | 0

Answered
Add a number every n values
A=[ 1 2 3 4 5 3 0 2 8 3 2 1 0 3 2 0 0 1 1 0 3 1 5 3 2 8 1 0 3 2]; a=4; after=6; b=nan(1,numel(A)+after); b(after:after:end...

7 years ago | 1

| accepted

Answered
Plotting Data of a Matrix with multiple values on the X-Axis.
load AmplitudeRe75 plot(-30:0,Amplitude)

7 years ago | 0

| accepted

Answered
How to plot a 3D surface from a non square matrix?
Try the below example and adapt it to your needs: x=1:10; y=1:9; z=rand(numel(x),numel(y)); [X,Y]=meshgrid(x,y); %redundant...

7 years ago | 1

| accepted

Answered
How to select the values in 3 column matrices at a time?
put the column vectors in a matrix and then extract abc=[a b c] abc(1,:) abc(2,:)

7 years ago | 0

Answered
non linear equation "problem with not enough arguments"
F=nonlinear(1:3) % calling of the function

7 years ago | 0

| accepted

Answered
Input to num2str must be numeric.
Use double() because omega_star is of symbolic class , ofcourse it can be acheived using fprintf() or sprintf() num2str(double(...

7 years ago | 0

| accepted

Answered
Error using sym/sin : Too many input arguments
x = A*cos(w*t) + B*sin(w,t); ^---- should be *

7 years ago | 0

| accepted

Answered
How can I indent the output of display() and disp()?
Just use fprintf() or sprintf() a=5; fprintf(' a=\n') fprintf(' %d\n',a)

7 years ago | 0

Answered
Cell to Table Conversion Problem
load conversioncell2table data1 = cell2table(main,'VariableNames',{'imageFilename' 'T1' 'T10' 'T11' 'T12' 'T13' 'T14' 'T15' 'T1...

7 years ago | 0

Answered
I'm tryng to calculate some number and matrix with my robotics project and facing this problem when run the code. Can anyone explain for me, i'm just a newbie. Thank you very much. The error is after the code.
EDITED Rules of matrix multiplication 3 by 3 times 3 by 1 but what you did was you transposed J_TE which is size 3 by 3 is also...

7 years ago | 1

| accepted

Answered
How can I solve a system of ODE's using ode45?
Below is the symbolic to numerical approach : you get error because your system of odes is symbolic and you are trying to use nu...

7 years ago | 1

Answered
flip a matrix using loops
matrix=randi([0,4],2); outFlip=zeros(size(matrix,1),size(matrix,2)); for i= 1:size(matrix,1) for j=1:size(matrix,2) ...

7 years ago | 0

Answered
How to hold sequential results in a loop & analyse them together at the end?
Don't think of naming variables dynamically use cell instead : numfiles = 20; mydata = cell(1,numfiles); for k=1:numfiles ...

7 years ago | 0

Question


FAQ: How to use a function properly?
I have seen many people using a function incorrectly so thought of referring this question for the future purposes instead of st...

7 years ago | 0 answers | 0

0

answers

Answered
Can someone help me with this question? I keep getting the error "Not enough input arguments. Error in assesment2question1 (line 5) for m = 1:N"
you‘re running a function file without an input which causes error

7 years ago | 0

| accepted

Load more