Community Profile

photo

jin wang


Active since 2015

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Assign values(form of a row vector) with different sizes to a matrix(fixed size), row by row
Let's say I have initialized a matrix with size m x n. Now with a "for" loop, I assign the values row by row to this matrix, ...

6 years ago | 1 answer | 0

1

answer

Question


how to optimize two variables with different scales
I am using fminsearch function to optimize two variables, say, a and b. They are the values returned from the optimization funct...

6 years ago | 1 answer | 0

1

answer

Question


problem using fminsearch, as parameters that I want to optimize is not input for the handle function
What if my model is composited by many subfunctions, and the handle function I am going to use in fminsearch doesn't include the...

6 years ago | 2 answers | 0

2

answers

Question


Error: In an assignment A(I) = B, the number of elements in B and I must be the same.
This is my code BF=initialBF(); %is a function returns a column vector BF(4,1) .......... COmax = HRmax*S...

8 years ago | 0 answers | 0

0

answers

Question


output middle variable in ode45 to the main function
Here are the problems I encountered: 1. ode45 can only relate one variable to time t, in this case it's T(including Tcr Tmu T...

8 years ago | 0 answers | 0

0

answers

Question


Error when solve system of equation using vpasolver
function [BF1,BF2,BF3,BF4,CO,COreq] = solveBF(k,MaxBFvsk,PctBF,MuVO2,COmax,BF1,BF2,BF3,BF4,CO,COreq) %UNTITLED5 Summar...

8 years ago | 2 answers | 0

2

answers

Question


solve a system of equations.
Could any one please help me write the code to solve this system of equations? Fcl=1/(1+0.155*Iclo*h); hr=4*5.67*0.0...

8 years ago | 3 answers | 0

3

answers

Question


solving system of multiple equations
My code is: syms BF1 BF2 BF3 BF4 CO COreq eqn1 = BF3(i)==0.012*CO; eqn2 = BF1(i)==...

8 years ago | 2 answers | 0

2

answers

Question


how to solve coupled both differential equations and normal equations
I know how to use ode45 to solve the coupled differential equations. The problem now is there are many other variables. Let's sa...

8 years ago | 1 answer | 1

1

answer