Question

Creating user defined variables and solving systems with a script

Hi all, been a while since I needed a question answered, so here goes: I am creating a script that is used to solve a system ...

7 years ago | 1 answer | 0

Question

Working backwards from a command window

Hey all, I had a strange question that I couldn't find an answer for, perhaps I could get some help here? A friend of mine wa...

7 years ago | 1 answer | 0

Question

Help with a MuPAD error please

Hi, I'm trying to run a program I put together, but I keep encountering a MuPAD error partway through. The program is exactly t...

8 years ago | 1 answer | 0

Question

MuPAD error

Hey all, I've been debugging this code for a while now, but I can't for the life of my find out what's wrong with this. When...

8 years ago | 0 answers | 0

Question

Understanding data structures.

Hey all, I have a question about the data Matlab is presenting me with. When I run a program I have created, Matlab outputs t...

8 years ago | 1 answer | 0

Question

Help iterating

Hey all, I've been working with a program that uses data from a spreadsheet, and solves an equation for each row of data. I ...

8 years ago | 0 answers | 0

Question

Troubleshooting tips

Hey all, I'm creating a function to pass to fsolve, to be solved in terms of V. When I run my program, however, Matlab retur...

8 years ago | 1 answer | 0

Submitted

Solution of n and k for two layers

The purpose of this function file is to create a function to pass to fsolve.

8 years ago | 0 downloads |

Question

fsolve inputs

Hey all, I'm trying to pass some equations to fsolve, but I'm getting nothing but errors. I have 3 complex equations, and to ...

8 years ago | 2 answers | 0

Question

Passing data to fsolve

Hey all, I'm trying to pass some equations to fsolve, but I'm getting nothing but errors. I have 3 complex equations, and to...

8 years ago | 0 answers | 0

Question

fsolve with symbolics

Hey all, I've been working on some code, and I have two questions: 1) If I'm using fsolve, and one of my guesses is zero, wi...

8 years ago | 1 answer | 0

Question

Defining variables for fsolve

Hey all, quick question: I've been trying to pass along data to an fsolve command all morning, but I keep running into errors...

8 years ago | 1 answer | 0

Question

Finishing a calculation

Hey all, I've been analyzing lots of data recently, and thanks to everyone here, I've made great progress in learning Matlab and...

8 years ago | 1 answer | 0

Question

Could someone please explain...

...the following error? I've looked in the help files and in previous questions to no avail. I am setting up an iteration as f...

8 years ago | 2 answers | 0

Question

Why is this variable "undefined"?

Hey all, here's my code: %This forgram will take 4 solutions of n1 and solve them. y = 250; n0 = 1; n2 = 1.69; k2 ...

8 years ago | 1 answer | 0

Question

Solve not working properly?

Hey all, I'm running a bit of code to solve for a variable in an equation. Here are the specs: theta = (2.*pi().*n1.*d...

8 years ago | 1 answer | 0

Question

Need some clarification

Hey all, I've got some code that's trying to solve a system of 6 equations using fsolve. It runs a loop, because the six equati...

8 years ago | 1 answer | 0

Question

What causes this variation?

Hey all, I've got to nearly identical programs, and one of them works while the other doesn't. When I run: data = csvread(...

8 years ago | 1 answer | 0

Question

Matlab Limitation?

Hey all, I've been performing some calculations with Matlab, and I've been getting unexpected results. I've been trying to calc...

8 years ago | 1 answer | 0

Question

iterating A Function

Hey all, quick question: Say I have some data: a,b,c 2,3,4 5,6,7 8,9,10 And an equation: 0=((a-b)./c)-R an...

8 years ago | 1 answer | 0

Question

Running an Iteration for single variable.

Hey all, I've been using a closure loop with fsolve to crunch data. The below code took 3 rows of data from a .csv, and plugged...

8 years ago | 0 answers | 0

Question

Outputting Data in Excel

Hey all, I'm running the piece of code here: data = csvread('data.csv'); assert (mod(size(data, 1), 3) == 0, ... ...

8 years ago | 2 answers | 0

Question

Solving Highly Irregular Non-Linear Equations

Hey all, I'm trying to solve a system of 3 highly irregular nonlinear equations using Matlab, but the solutions I get are not th...

8 years ago | 1 answer | 0

Question

Defining Variables

Hi, I'm a fairly new user of Matlab, and I set up a list of variable definitions like so: n0=1; n21=1.694; n22=1.7046; ...

8 years ago | 1 answer | 0

Question

Altering Default MaxFunEvals

Hi, I'm having trouble altering the default number of evaluations (300) of an fsolve. My .m file looks like this (function omit...

8 years ago | 1 answer | 0

Question

Importing data at a regular interval for analysis

Say I have an array in a .csv file like this: a,b,c,d,e,f 20,1,10,100,1000,100 21,2,20,200,2000,200 22,3,30,300,3000...

8 years ago | 2 answers | 0

Question

using .csv files with Matlab

Say I have an array in a .csv file like this: a,b,c,d,e,f 20,1,10,100,1000,100 21,2,20,200,2000,200 22,3,30,300,3000...

8 years ago | 1 answer | 0

Question

Plotting help

Hi, I'm pretty new to Matlab, and I tried to execute this script: eq1 = '((((1.5-(x-(i*(y))))/(1.5+(x-(i*(y)))))+((((x-(i*y))...

9 years ago | 1 answer | 0