Community Profile

Professional Interests: Mechanical Engineering

Contact

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 days 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 12 months 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

Answered 2 years ago

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...

1318 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 1 year ago

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 am doing a parallel computation, specifically a row by row integration of a symbolic matrix (sic I am integrating 4 rows at a ...

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

Asked 2 years ago

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.

Answered 1 year ago

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...