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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

| aceptada

Respondida
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))

más de 5 años hace | 0

| aceptada

Respondida
[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...

más de 5 años hace | 0

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

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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)))

más de 5 años hace | 0

| aceptada

Respondida
Syms dependent on time vector notation
formula(du)

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 0

Respondida
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 []

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 2

| aceptada

Respondida
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))

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

Respondida
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},... ...

más de 5 años hace | 0

Respondida
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.

más de 5 años hace | 3

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

más de 5 años hace | 0

Respondida
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)

más de 5 años hace | 0

Respondida
Non square matrix rotation
matrix.'

más de 5 años hace | 1

| aceptada

Respondida
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.

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

Respondida
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 ...

más de 5 años hace | 0

| aceptada

Respondida
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 ...

más de 5 años hace | 0

| aceptada

Cargar más