Answered
How to pass from vector to matrix
Use reshape()

7 years ago | 0

| accepted

Answered
What does that mean?
https://www.mathworks.com/matlabcentral/answers/355007-error-data-must-be-numeric-datetime-duration-or-an-array-convertible-to-d...

7 years ago | 0

| accepted

Answered
Factorization With Symbolic Terms
AFAIK - I don't think there is a possibility to do that in symbolic math toolbox After all the struggles: see isequaln() eq=x^...

7 years ago | 3

Answered
ode45 Initial conditions are not at the same point
https://www.mathworks.com/help/matlab/ref/bvp4c.html

7 years ago | 2

| accepted

Answered
Using the Integral-function
Bitte ausprobieren: L=9.81 phi0 =30 %degree disp('Schwingungsdauer bei phi0= 30Grad'); erg=schwingungsdauerK6_A3(9.81,30); ...

7 years ago | 0

Answered
Anyway to "vectorize" the coding of symbolic ODE systems?
Your code looks perfect(well organised and neat symbolic forms) , please don't think of changing it. If you still insist doing...

7 years ago | 0

| accepted

Answered
How to Make Complex Symbolic Variable Change?
>> syms wr wl z wp Y eq = 0.001*(wr + wl) + 2*z + 1.5*z == -2*wp eq=subs(eq,0.001*(wr+wl),0.01*Y) eq = wl/1000 +...

7 years ago | 0

| accepted

Answered
How to transform a matrix in his snake version
>> A=[1 2 3; 4 5 6; 7 8 9; 10 11 12]; B=[1 2 3; 6 5 4; 7 8 9; 12 11 10] A([2:2:size(A,1)],:)=fliplr(A([2:2:size(A,1)],:)...

7 years ago | 0

| accepted

Answered
How can I join two vectors (integer and decimal)?
One nasty way which is highly discouraged: >> A = string([1 2 3 4 5]); B = string([6 7 8 9 10]); C=strcat(A,'.',B); ...

7 years ago | 1

| accepted

Answered
How to (scatter) plot a cell array from a table
cellfun(@scatter,Time_s(1),P_1_1(1))

7 years ago | 0

| accepted

Answered
error 'index exceeds matrix dimensions' MATLAB
sizez of A6(v,v:V:K) and X6(v:V:K) should be the same to perform this operation -> A6(v,v:V:K)=X6(v:V:K) suspect it should be: ...

7 years ago | 0

Answered
Error using bsxfun??
Try : D = 25 ; K = 11; h = 100; reg = 0.01; iteration=1000; % i can't see this being used anywhere? w1 = 0.01*randn...

7 years ago | 1

| accepted

Answered
How to invert/flip only Y1 axis in a 2-line plot (Y1 and Y2 upon X)?
https://www.mathworks.com/matlabcentral/answers/22321-plotting-and-reversing-axis-direction#answer_29378 , grab second axes hand...

7 years ago | 0

| accepted

Answered
How to accquire the Y data from an X input
Use interp1() example: x=[3 6 8 9]; y=[1 2 3 4]; X=5; Y=interp1(x,y,X) %gives corresponding Y value to X

7 years ago | 0

Answered
I have a specific values for x... and I have equations , and want to put those values in those equations... HOW?
syms X f=X^5-X^2-65 X=[12 16 1771 151 -41] subs(f)

7 years ago | 1

Answered
Summation by using loops and cells
Looks nasty although there are efficient solutions which avoids loop: K=9; L =0.5:0.5:3; M{1}=[2 6 8 10 12 14 16]; ...

7 years ago | 0

| accepted

Answered
How do I find the roots of x*tan(x)-5=0?
Declare syms x and solve the equation using vpasolve() and fplot() to verify the roots.

7 years ago | 0

| accepted

Answered
omit rows from matrix
>> A=[1,2;1,3;1,4;1,5;2,4;2,3;2,5]; B=[2,4]; idx=ismember(A,B,'rows'); A = A(~idx,:) A = 1 2 ...

7 years ago | 0

| accepted

Answered
How to make .m file
% r1,k1,alpha12,gamma12,r2,k2,alpha21,gamma21 provide all the values here ,parametrized your function rather than using global ...

7 years ago | 0

Answered
Error creating or updating Surface
x=-6:0.5:-2; %change your line to this

7 years ago | 0

| accepted

Answered
how can I do ROTATION OPERATION for both row and column
circshift()

7 years ago | 0

Answered
How to combine table vertically
table2array() array2table() https://www.mathworks.com/help/matlab/matlab_prog/create-a-table.html#d120e26567

7 years ago | 0

| accepted

Answered
Errors with Quad function
put ./ instead of / usually integral is preferred than quad see doc >> mu = 0.01 Tmu = @(z)(mu ./ (sqrt(((((mu).^2)/2) - ((...

7 years ago | 0

| accepted

Answered
How to multiply 7 x 1 matrix with 400 x 1 matrix?
It's matrix multiplication you can just transpose the matrix to match the rule of matrix multiplication: a=rand(400,1); %exampl...

7 years ago | 0

| accepted

Answered
I am trying to add row to image matrix.
X=zeros(1,1280,3); %you forgot to add 1279 columns instead you just added 1 column which caused the error , 3 indicates its 3D ...

7 years ago | 1

| accepted

Answered
Vectors must be the same length.
plot(t,y(1:numel(t))) %or plot(t(1:numel(y)),y)

7 years ago | 0

Answered
Is it possible to pass a string in the argument of a handle function?
Have a look at str2func() f=@(x,y,z) x+y+z a=[1 2 3] f(a(1),a(2),a(3))

7 years ago | 0

Answered
How can I plot this function?
x=linspace(0,5,1000); f= sqrt(x); x0=5; y0=interp1(x,f,x0); plot(x,f,'r') hold on plot(0:5,zeros(1,6),'r') plot(5*ones(1...

7 years ago | 0

| accepted

Answered
Undefined function or variable 'lb'.
lb=[57 66 22 22 17 8 32 33 36 33 18 41 80 115 105 70 57 42 17 17 12 10 11 20 36 37 20 30 35 15 20 2]; ub=[1170 1303 440 440 330...

7 years ago | 0

Load more