Answered
Making a table by using fprintf
https://www.mathworks.com/help/matlab/ref/fprintf.html#btf98f7

7 years ago | 0

Answered
Dot Operations in MATLAB
a = 2.*(v.*t - x)./t.^2 % ^---- missed it

7 years ago | 0

| accepted

Answered
How to replace every other element in an array with another array?
A(1:2:end)=B

7 years ago | 1

| accepted

Answered
GET COORDINANCES FROM PLOT
https://www.mathworks.com/help/matlab/ref/ginput.html

7 years ago | 0

| accepted

Answered
plot or stem the length of negative and positive signal?
stem(repmat(XNsize,XNsize,1),[Xn, Xp])

7 years ago | 0

Answered
Where do I use the periods when multiplying a function by a Vector?
x=linspace(-4,4); f=x+(1./x.^2-1); plot(x,f)

7 years ago | 1

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
A=zeros(1,25); %preallocation is important A(1)=1; for k=2:25 A(:,i)=A(:,i-1)+1; end A Note: This task doesn’t require...

7 years ago | 0

Answered
Strings: delete rows with empty values
a(~any(cellfun('isempty',a),2),:) % where a is your string array

7 years ago | 1

| accepted

Answered
Find if row (string) matches an array
ismember(Database_B,Database_A,'rows')

7 years ago | 0

Answered
How to replace variable name in function handle?
Instead of converting it to your later need convert the vector as comma separated list using num2cell(): x=rand(1,2); % example...

7 years ago | 1

Answered
index of an array multiple same element
u=unique(a); C=arrayfun(@(x) find(a==u(x)),1:numel(u),'un',0); %celldisp(C)

7 years ago | 0

Answered
hi everybody , i have a question please , if i have X=[1:10] and Y=[-5:5] and i want to have all the point of the plane (x,y) , what can i do in matlab to extract this point to use it
I am not sure I fully understand but see if it does what you want [x,y]=ndgrid(X,Y); [x(:) y(:)] % after this it’s just matrix...

7 years ago | 0

Answered
putting the answer in a matrices
b=arrayfun(@(x)find(a(x,:)),1:size(a,1),'un',0); M=max(cellfun('prodofsize',b)); C=cellfun(@(x)[x zeros(1,M-numel(x))],b,'u...

7 years ago | 1

Answered
Concatinate the ith element of one matrix with the ith element of second matrix
"Below are the arbitrary matrices (can be bigger but with same dimensions)" result=reshape([a(:) b(:)].',1,[])

7 years ago | 0

| accepted

Answered
How to extract sequential submatrices
Don't create variables dynamically ( https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be...

7 years ago | 0

Answered
6,8 Matrix
Your way seems about right.

7 years ago | 0

| accepted

Answered
Converting a 2d vector to a 4d vector
Aternatively: [m,n]=size(val); Val=reshape(val.',1,1,n,m)

7 years ago | 1

Answered
How to count different value from 2 cell?
B(~cellfun(@isequal,B,A))

7 years ago | 1

| accepted

Answered
how to create a matrix from cells with different size and concatenate them?
vertcat(Rcalc{:})

7 years ago | 0

| accepted

Answered
How to joint together two matrix?
C=reshape(num2cell([A(:) B(:)],2),4,[]); % celldisp(C)

7 years ago | 0

Answered
Problem Calculating an Integral
f10 = @(x,a) x.^2.*exp(-x.^2./(2*a.^2)) q10 = integral(@(x)f10(x,2),-Inf,Inf) % ^--- value of a % othe...

7 years ago | 0

| accepted

Answered
How to plot a Differential Equation
syms V(t) C=... R=... Vrest=... ode=C*diff(V)==t-V/R; V(t)=dsolve(ode,V(0)==Vrest); fplot(V(t))

7 years ago | 0

| accepted

Answered
Cannot plot the figure
You haven't defined capital "C".

7 years ago | 0

Answered
how to pass varibles to the function while using ODE45
https://www.mathworks.com/help/matlab/math/parameterizing-functions.html

7 years ago | 0

| accepted

Answered
警告:更新Legend出错 ! Not enough input arguments.
use ' instead of ’

7 years ago | 0

Answered
A(1:2,2:3) how this will work
I suggest you to do matlab onramp course which is interesting to learn matlab >> A=rand(3) A = 0.1039 0.8697 0....

7 years ago | 0

| accepted

Answered
how to divide matrix into sub matrix
Result=reshape(A',1,4,[])

7 years ago | 0

| accepted

Answered
simulink start page error.
Either reinstall the software or click on the Contact Us button on the top right corner of this page to contact Mathworks Suppor...

7 years ago | 0

Answered
How to display a matrix in a figure?
uitable()

7 years ago | 0

| accepted

Load more