Answered
How can I asign columns of a matrix to different matrixes?
permute(reshape(matrix, 154, 558, []), [2, 1, 3])

5 years ago | 1

| accepted

Answered
what's going on?
plot(A.' , '-x')

5 years ago | 1

Answered
テキストファイルから特定の行、列の読み込み
Use readtable()

5 years ago | 0

| accepted

Answered
substitute only first derivative in symbolic toolbox
I remember doing vibration analysis, used to be pretty tricky: expr2 = subs(expr, diff(x, 2), diff(v))

5 years ago | 0

| accepted

Answered
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
When someone tries to answer a homework question (when it has a tag), it could restrict the answered to post the full solution(s...

5 years ago | 0

Answered
Summing an array and plotting it.
doc cumsum doc plot

5 years ago | 0

Answered
If statement for the structure in table
FIND_rows_of_A = find(strcmp(T.alphabet, 'A')) %or FIND_rows_of_A = find(ismember(T.alphabet, 'A')) [Alphabets, ~, c] = uniqu...

5 years ago | 0

| accepted

Answered
How to enter variable names into plot title (R2019a)
title(sprintf('2D Gaussian when mean is %.2f and standard deviation is %.2f', m(ii), s(ii)))

5 years ago | 0

| accepted

Answered
Syms dependent on time vector notation
formula(du)

5 years ago | 0

| accepted

Answered
Identify a number in a string
Wanted = str2double(regexp(Ans, '(+|-)?(\d+)?\.?\d*', 'match'))

5 years ago | 0

| accepted

Answered
Find the theta1 and theta2 values that maximize the function
obj8Run = @(theta) -mean(sum((1+theta(1).*csecxit+theta(2).*csecyit)/N.*R4-c*t4,2))./sqrt(sum((1+theta(1).*csecxit+theta(2).*cse...

5 years ago | 0

Answered
[大至急お願い致します] for文の入れ子に関しまして
[d, c, b, a] = ndgrid(1:10); fun = @(a,b,c,d) (a + b).^c .* d; fun(a(:), b(:), c(:), d(:))

5 years ago | 1

Answered
Answer to the following points:
doc colon doc transpose Start with MATLAB Onramp course.

5 years ago | 0

Answered
Convert String to Numerical Matrix
Normally str2num() is not suggested: Wanted = sscanf(A(2:end-1), '%d').' % edited after sir Walter’s comment to exclude []

5 years ago | 1

| accepted

Answered
Add terms to previously defined differential equation (Symbolic)
eq_damped = lhs(eq_undamped) + damping == rhs(eq_undamped)

5 years ago | 2

| accepted

Answered
finding the mean based on a specific value in other column
ix = (abs(column_1 - 527.1235) < 1e-4) &... (abs(column_1 - 927.5) < 1e-1); M = mean(column_4(ix))

5 years ago | 0

Answered
How to assign value to variable
syms Y equation = Y + 5 == 10

5 years ago | 0

Answered
Counting in a loop
Note: Never name a variable times. function TimeS = timeLoop(startVelocity, distance) TimeS = zeros(size(startVelocit...

5 years ago | 0

Answered
How to place values in vectors from a text file
T = readtable('Test.txt', 'ReadVariableNames', 0); C = cellfun(@(x) sscanf(x, '%d').', T{ismember(T{:, 2}, 'tag'), end},... ...

5 years ago | 0

Answered
What are the obsessions you saw in MATLAB Answers or in MATLAB programming?
Have to use MATLAB even for a simple calculation eventhough it could be done in mind.

5 years ago | 3

Answered
take input in array
Use input() , enter the values in the form [1,5,4] an example. doc input

5 years ago | 0

Answered
Output simpler version of symbolic polynomial expression
syms x y a b z = a*x^2 + 2*a*x*y + b + a*y^2; simplify(collect(z, a), 'Steps', 50)

5 years ago | 0

Answered
Non square matrix rotation
matrix.'

5 years ago | 1

| accepted

Answered
Mean between an interval
x = 1:5; x(.2) % error x(2) % no error , index can only be integers not decimals I suggest you to do MATLAB Onramp course.

5 years ago | 0

Answered
issues with syms function
You have a custom file named sym.m , remove it from the path or rename it.

5 years ago | 0

Answered
Function returns ans, how to exclude?
[x1, x2] = quad_equation function [x1, x2] = quad_equation prompt = 'a = '; a = input(prompt); prompt2 = 'b = '; b ...

5 years ago | 0

Answered
Problem with displaying numbers
double(EmptyW) %or vpa(EmptyW)

5 years ago | 0

Answered
Error in function handle using fminsearch
min3 = fminsearch(f, x0);

5 years ago | 0

| accepted

Answered
Make a vector based on for loop values
You are close: if (mod(n,2) == 1)&& (mod(n,11) == 0 || mod(n,13) == 0); If the above statement is true , you will save n ...

5 years ago | 0

| accepted

Answered
Error in ODE45
MATLAB doesn't have implicit multiplication, hence: dT1 = (F1*(Tc-T1)+Fr*(T2-T1)+(Q1/rho_w*Cp))/(A2*h2); Note: Fr is not ...

5 years ago | 0

| accepted

Load more