Community Profile

photo

Torsten


2,358 2013 年以降の合計貢献数

連絡する

Torsten's バッジ

  • Ace
  • 24 Month Streak
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Too many input arguments - Fminsearch
function fmin x0=0; %parâmetro de valor inicial para a condição options=optimset('Display','iter','TolFun',0.1) [x]=fmi...

約10時間 前 | 0

回答済み
Error in while loop
Do you want a different value for B for each minor, i.e. B(i) instead of B ? Then use function IsStable(polynomial) if AllNon...

約11時間 前 | 1

| 採用済み

回答済み
Combining vectors [1 2 3 4 5] and [2 3 4 1 5] to [12 23 34 41 55]
v = 10*v1 + v2

約12時間 前 | 0

| 採用済み

回答済み
Set up an OR argument for equation
v = (xdot_1-xdot_2)).*(sign(x1-x2-gap)+1)/2; if v > 0 fp = (k_inp*(x1-x2-gap)+c_inp*(xdot_1-xdot_2)).*(sign(x1-x2-gap)+1)/2 ...

1日 前 | 1

| 採用済み

回答済み
distance between two points
You mean "where each row indicates the XYZ coordinates of a point" ? And you want to calculate the distance between the correspo...

4日 前 | 1

回答済み
Correct formulation for a fmincon problem
The vector of unknowns for fmincon will be Uvec = [u1(t0),u2(t0),u3(t0),u4(t0),u5(t0),u1(t2),u2(t2),u3(t2),u4(t2),u5(t2),...,u1...

4日 前 | 0

回答済み
ode45 code not running and need help imputing my boundary conditions
function main y0=zeros(7,1); y0(1) = 0; % f y0(2) = 0; % f' y0(3) = 0; % f'' y0(4) = 0; % theta y0(5) = 0; % theta' ...

5日 前 | 1

| 採用済み

回答済み
How to generate random orthogonal codes in matlab
mat2str(de2bi(randi([0,3],5,16)))

5日 前 | 0

| 採用済み

回答済み
plotting profiles from differential equations
function dFTdV = Reactor3(V,FT) %Reactor3 function is used to obtain mass and energy balances across the %reactor F = FT(1...

5日 前 | 1

回答済み
How to calculate the distance
distmat = B(:,4:7)-repmat(A,4,1); dist = vecnorm(distmat.')

6日 前 | 1

| 採用済み

回答済み
trouble in integral solving [SOLVED]
q = vpa ( int(fun,[-Inf Inf]) )

6日 前 | 0

回答済み
splitting real and imaginary part of a complex equation in order to generate two nonlinear equations to solve for two unknown real constants
Z0 = 50; Y0 = 1/Z0; e_inf = 4.6; % optical permittivity at high frequencies e_s = 78.3; % static permittivity ...

6日 前 | 0

回答済み
"The boundary condition function BCFUN should return a column vector of length..." ERROR USING BVP4C
As initial condition, you give a row vector of ones of length 432. So in ex1ode, bvp4c will give you a vector of length 432 for...

7日 前 | 1

回答済み
Finite Integral with periodic values of x
idx = (x>=0.3 & x<=4.5); xp = x(idx); yp = y(idx); F = cumtrapz(xp,yp); F = F(end) - F; plot(xp,F)

7日 前 | 1

| 採用済み

回答済み
Integration within particular range
idx = x>=2 && x<=3; xp = x(idx); yp = y(idx); value = trapz(xp,yp)

7日 前 | 0

| 採用済み

回答済み
Solve symbolic Sylvester-like equation
syms a x11 x12 x21 x22 b11 b12 b21 b22 A=[a+sym('1'), sym('2'); sym('3'),sym('1')]; X=[x11,x12;x21,x22]; B=[b11,b12;b21,b22];...

8日 前 | 0

回答済み
speed for loop in sum
function main x = linspace(-2,2,100); %some vector [X,XX] = meshgrid(x,x); %some matrix k = 0:20; a = 0.5; A0 = a...

8日 前 | 1

| 採用済み

回答済み
How to use lognrnd?
It is common to say that X is lognormally distributed with parameters mu and sigma if it has the pdf f(x) = 1/(x*sigma*sqrt(2*p...

8日 前 | 0

| 採用済み

回答済み
Numerical value for sum of bessel functions
k = 0:10; x = 3; A0 = sum((-1).^k.*x.^(2*k).*besselj(2*k,x)) If x is a vector, use A0 = arrayfun(@(x)sum((-1).^k.*x.^(2*k)....

8日 前 | 1

| 採用済み

回答済み
System of differential equations and fitting with lsqcurvefit
function main % loading Exp data CurrentDensity = xlsread('Modified_Current_density_all','Sheet1','A1:J1001'); Brightne...

9日 前 | 0

回答済み
HOW TO SOLVE TRANSCENDENTAL EQUATION
function main Enle0 = 1.0; Enle = fzero(@fun,Enle0) end function res = fun(Enle) Vc = 0.249; c = 3e8; m0 = 0....

9日 前 | 1

| 採用済み

回答済み
Finding the 'n'-th derivative of a function containing 'n'
syms x k n = 10; diff(exp(-x)*x^(n+k),x,n)

11日 前 | 0

| 採用済み

回答済み
how to create an vector contains 10000 random values that uniformly distributed with mean 1 and variance 10 ?
mean = 1.0; std = sqrt(10); N = 10000; u = (mean-sqrt(12)/2*std) + sqrt(12)*std*rand(N,1) u is uniformly distributed on [a:...

12日 前 | 0

| 採用済み

回答済み
How to run lsqcurvefit with a function handle with 2 array-variables?
rao_H2O = @(k,x) k(1)*k(2)*C_TBA_H2O./(1+k(2)*C_TBA_H2O+(k(2)*C_H2O).^gamma(2))+k(3)*C_TBA_H2O; xdata = zeros(size(rao_norm)); ...

12日 前 | 0

回答済み
Can't figure out how to iterate a variable defined in ode45 function.
[time,s] = ode45(@(time,s)dampedspring(time,s,b),tspan,BC);

13日 前 | 0

回答済み
A(B)=0 What is its meaning?
All numbers in the matrix A that are bigger than 0.8 are set to 0.

13日 前 | 0

回答済み
FALLING FACTORIAL AND POCHHAMMER
prod(x-a+1:x)

13日 前 | 0

| 採用済み

回答済み
How to sum all positive values in each row in matrix?
sum(max(A,0),2)

13日 前 | 0

| 採用済み

回答済み
Lotto code,the previous number cannot appear again,how do i improve it?
x = rand(1,10); [a b] = sort(x); previous_number = b(1:6) set_for_last_number = setdiff(1:8,previous_number); pos = randi(le...

14日 前 | 0

| 採用済み

回答済み
How to find minima from a fitted 3rd order polynomial
Solve y'(x)=0 for x and check whether f''(x) > 0.

14日 前 | 0

Load more