Community Profile

Contact

Professional Interests: Mechanical Engineering

Top 5% contributor

I have a code that repeatedly calculates a sparse matrix in a loop (it performs this calculation 13472 times to be precise). Eac...

2 Answers

1

Asked 10 months ago

Your question isn't written very clearly at all. Please take some time to clearly describe your problem and help the community a...

Answered 2 years ago

I have found the answer. I am using Matlab R2012b. There is a bug in the code that switches the arguments old and new if subs...

accepted

0

Thanks for the help, I will give it a go with some large matrices and will report back to this thread so that other users may be...

1566 views

Responded 2 years ago

Steve, I'm quite unsure about how one would proceed with this. First of all, I guess I would have to use integral2 since I'm per...

I have copied the code below after all, this should be easier for everyone. I have tried to speed it up myself using parfor, wit...

Why would it be an oxymoron? I said the model is elegant, I didn't say my code is elegant. Quite a strange comment to make.

I have a code (script) of 462 lines. In parts, it uses the symbolic toolbox. It also makes calls to 3 other functions that I hav...

Posted 2 years ago

I am creating a number of text files (or really m files) in a loop. The filenames should be sequential, having the suffix 1,2,3...

Asked 2 years ago

I am doing a parallel computation, specifically a row by row integration of a symbolic matrix (sic I am integrating 4 rows at a ...

3 Answers

2

I am new to Object Oriented Programming. After _a lot_ of stressing, I have finally managed to define my own class of objects in...

1 Answers

I have a large MATLAB function file. It first creates a zero matrix, then updates about 70% of the cells by evaluating a number ...

I've got a simple piece of symbolic code below. It all seems to work well, except one strange thing happens. Vx1_before contains...

I have a matrix populated with symbolic expressions in 2 variables. I would like to carry out a *definite* surface integral of e...

The problem looks as in the attached image. The exponent in the colorbar scale indicator (i.e. 10^9 symbol next to the colorbar)...

I have an analytic function defined over x=[0,100] and y=[0,100]. I do not know the precise workings of the function, just that ...

I have created a user-defined domain in muPad called Bx. Each object in this domain is defined by two variables: n and k. B...

I am getting the error: "Error in integral2 (line 107)" when trying to numerically evaluate the below surface integral. fun...

0 Answers

I've figured it out... had to use sprintf instead of fprintf.

I've done the hard bit and have managed to define a method that does what I want. I will provide it here for reference. I would ...

I have a symbolic vector that looks as follows: n=4; syms x y z B = sym(zeros(n, 1)); for k=0:n B(k+1) ...

I really need to speed up the code below. It is part of a stress analysis module. The idea is that the more basis polynomial te...

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries