Quantcast
Channel: MATLAB Central Newsreader - tag:"variables"
Browsing all 41 articles
Browse latest View live

Re: Reading variable from workspace

Steven, Just to be thorough, I use the matrices x1, ..., x10 thousands of times in my code because I'm doing statistical averaging. And, each matrix is about 800 MB in size. I do almost exact kind of...

View Article



Re: Reading variable from workspace

On 08/29/2014 11:26 AM, Elnaz wrote:> Steven,> Just to be thorough, I use the matrices x1, ..., x10 thousands of times> in my code because I'm doing statistical averaging. And, each matrix...

View Article

Re: Reading variable from workspace

This is exactly what I'm doing: % this loads 10 huge matrices, all of type double, same number of rows but different number of columns for i = 1:10    load(['filename',num2str(i),'.mat']); end Then the...

View Article

Re: Reading variable from workspace

"Elnaz " <ebsadeghian@gmail.com> wrote in message news:ltqe1r$pub$1@newscl01ah.mathworks.com...> This is exactly what I'm doing:>> % this loads 10 huge matrices, all of type double,...

View Article

Re: Reading variable from workspace

I am using structures as Steven kindly explained above. Now, a new, strange, problem shows up: As the first step, I am loading each separate matrix and then put them in a structure array. I save the...

View Article


using fsolve returns initial values

Dear all, I'm trying fsolve to solve a nonlinear system comprising of 4 equations. The function that I declared looks like this: %%%%%%%%%% function F = myfun( y ) %y is the solution vector (xx zz...

View Article

Re: using fsolve returns initial values

"Magnus" wrote in message <lu1j4m$jq1$1@newscl01ah.mathworks.com>...> Dear all,> > I'm trying fsolve to solve a nonlinear system comprising of 4 equations.> The function that I...

View Article

Re: using fsolve returns initial values

> The function that I declared looks like this:> %%%%%%%%%%> function F = myfun( y ) Presumably the function "TransformZetaAndEta" which you use in "fsolve" is a synonym for "myfun"?> %y is...

View Article


Re: Reading variable from workspace

"Elnaz " <ebsadeghian@gmail.com> wrote in message news:ltrgt2$j4g$1@newscl01ah.mathworks.com...> I am using structures as Steven kindly explained above. Now, a new, > strange, problem...

View Article


Simscape - Number of equations exceeds number of variables

Hi guys I am attempting to model a very simple fuel tank with a pump taking fuel out at a constant rate in Simscape with custom components. The volume in each tank is calculated at each time step with...

View Article

Save multiple variables and values within a 'for' loop

If you are looking on how to save multiple variables and values within a 'for' loop then find below a simple MATLAB script code that will aid your learning r=[] for x = [10:2:20]    for y =...

View Article

cell variables in Simulink

Do I can import cell variables or 3D matrix from the workspace to the Simulink?

View Article

Re: cell variables in Simulink

3D matrices are imported in the same way as any other (i.e. 1D, or 2D) matrices. Simulink signals cannot be cell arrays. Phil.

View Article


Creating a margin of error in a variable

I have a variable called A, and I want to create a variable B that is essentially just A + or - 2. Is this possible?

View Article

Re: Creating a margin of error in a variable

On 7/20/2015 3:39 PM, Hannah Schultejans wrote:> I have a variable called A, and I want to create a variable B that is>essentially just A + or - 2. Is this possible?> There are called interval...

View Article


fminsearch: Assignment has more non-singleton rhs dimensions than...

Hi all, While running our script to estimate some parameters we bumped into a problem. We are using fminsearch and Matlab returns the following error: Assignment has more non-singleton rhs dimensions...

View Article

Re: fminsearch: Assignment has more non-singleton rhs dimensions than

On 3/16/2016 11:31 AM, RvdH wrote:> Hi all,>> While running our script to estimate some parameters we bumped into a> problem. We are using fminsearch and Matlab returns the following...

View Article


Re: fminsearch: Assignment has more non-singleton rhs dimensions than

Alan Weiss <aweiss@mathworks.com> wrote in message <nce93c$st1$1@newscl01ah.mathworks.com>...> On 3/16/2016 11:31 AM, RvdH wrote:> > Hi all,> >> > While running our...

View Article

lsqcurvefit with a system of ODEs with repeated data set

Hello, I have the following system of odes: ds/dt = k1*C-(k2*S*(0.1-C)) ; dc/dt = (k1*S*(0.1-C))-((k2+k3)*C); with initial conditions s0 = 5, c0 = 0; I have two data sets ( re run) for the same...

View Article

Program with different cases

I'm writing a program that should allow a user to pick from a list of 20 different mathematical cases. Once the case has been selected they are allowed to input 6 different variables. After that the...

View Article
Browsing all 41 articles
Browse latest View live




Latest Images