Community Profile

##### Last seen: Today
4 507 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

Replacing all values of a with b in a matrix?
What do you expect == is a logical operator, when not used in symbolic calculations if you just want to assign it, then simply u...

environ 8 heures ago | 0

| accepted

You need to create a matrix using the formula
help for

environ 16 heures ago | 0

как получить векторный массив выходных данных цикла for
n = 1 : 3; for k = 1 : numel(n) y(k) = 2*n(k); end

1 jour ago | 0

First occurance problem in the adjacent coloumn
[~, ix1_2] = max(A == [ii, jj])

1 jour ago | 0

display matrix row wise using fprintf have
matrix = [1:3; 4:6]; fprintf([repmat('%d ', 1, size(matrix, 2)) '\n'], matrix(1, :))

1 jour ago | 0

for文で出た結果を行列に出力
k = 0 : 3; A = zeros(size(k)); for l = 1 : numel(k) A(l) = k(l); end A Without loop: A = 0 : 3

1 jour ago | 1

Can anybody help me?
Pprime = bsxfun(@times, P, reshape(lambda, 1, 1, [ ]) % for newer versions use .* directly

2 jours ago | 0

turn addition and multiplication into a code
syms x y = 0.5*0.024*(x^2+(0.06+x)^2); I suggest you to do MATLAB On-ramp course.

2 jours ago | 0

How can you make an input to a symbolic variable?
equation = {'x^2 + x'}; diff(str2sym(equation)) equation = {'x^2 + y'}; eq = str2sym(equation); syms(symvar(eq)) diff(str2s...

2 jours ago | 0

| accepted

satisfying the initial condition y(0) =0
help ode45 help dsolve

2 jours ago | 0

Question

Precision in writetable()
Is there a way to use writetable() to export using only 2 decimals? To be able to directly export it to an excel file.

4 jours ago | 1 answer | 0

### 1

How to solve 3 functions in 4 variables
Use solve() to get the answer what you show

5 jours ago | 0

How to divide 8 bit binary into two 4 bit?
A = '11001111' A = mat2cell(A, 1, [4, 4]); celldisp(A)

5 jours ago | 0

| accepted

Error in plotting (blank graph): Vector Size
No loops needed: eta = -0.001778 * v.^2 + 0.05333 * v; eta(30 : end) = 0;

6 jours ago | 0

Trying to input multiple vectors into function
stagpres1 = stagpres(1:10, 1:10) function stagpres1 = stagpres(deltaP, flowarea) gmpercm2 = deltaP * 0.010197; %...

6 jours ago | 0

| accepted

Need help with 3-D plotting
[X, Y] = meshgrid(-2*pi : 0.01 : 2*pi);

6 jours ago | 0

| accepted

What is the problem with the code on the line that reads "disp({'Coordinates For Node ' num2str(k1) ' ^re: '})
{} -> [] , simply use sprintf() on that line

7 jours ago | 0

| accepted

Evaluate function over a mesh grid (without for loops)
v = num2cell([X(:), Y(:)], 2); Z = reshape(cellfun(Jfun, v), size(X));

7 jours ago | 0

plotting Table doesn't work anymore?
x = T{:, 1} y = T{:, 2}

7 jours ago | 0

| accepted

Finding the index in two different arrays where values are closest
Note: Not tested. ix = abs(a(:) - b(:).'); [~, ID] = min(ix(:)); [where_a, where_b] = ind2sub(size(ix), id)

8 jours ago | 0

Multiplication of 1D and 2D vector to a 3D vector
C = repelem(B, 1, 1, max(A))

8 jours ago | 0

Multiplication of 1D and 2D vector to a 3D vector
[m, n] = size(B); C = zeros(m, n, numel(A)); for k = 1:numel(A) C(:, :, A(k)) = B; end C

8 jours ago | 0

Multiplication of 1D and 2D vector to a 3D vector
Sigh. Your question says one thing and your example does another thing. Only God know what you want. C = repmat(B, 1, 1, max...

8 jours ago | 0

Multiplication of 1D and 2D vector to a 3D vector
C = reshape(A, 1, 1, []) .* B % use bsxfun() if you’re version is prior to 2016b C = bsxfun(@times, reshape(A, 1, 1, []), B)...

8 jours ago | 0

Integrate an acceleration vector to obtain a velocity vector
Use cumtrapz() doc cumtrapz

8 jours ago | 0

| accepted

Imaginary Number Notation/ Formatting Real and Complex Results
The imaginary part might not be exactly zero. vpa(Answer)

10 jours ago | 1

Find equal value in two cell arrays
Wanted = find(cellfun(@isequal, A, B))

10 jours ago | 0

| accepted

Beginning matlab user error, functions
Take that fminsearch() outside of the function doc function % see how to use functions

10 jours ago | 0

| accepted