Community Profile

Contact

Top 1% contributor

If anyone is intrested in a version of 'pchip' and/or 'spline' that can easily be modified for use in a MEX function (because in...

accepted

0

Answered 3 years ago

This actually is the bottleneck of my whole application. It arises from the discretized domain into nodes that represent a volum...

18981 views

Responded 3 years ago

Hi all, I have set up a number of nonlinear equations that I have to solve many times. I have set everything up to use fsolve()...

Posted 3 years ago

%res is a structure with fields (name,Cp_R,H_RT,S_R,G_RT,Cp,H,S,G) %fields Cp_R,H_RT,S_R,G_RT are peicewise symbolic vari...

1

Answered 4 years ago

I have been having trouble using *<http://www.mathworks.com/help/techdoc/ref/str2func.html STR2FUNC>* to make a function handle ...

4 Answers

3

Asked 4 years ago

Hi all, I have code that has worked fine in matlab 2010b using the subs() function for symbolic substitution, however the sam...

5 Answers

Asked 3 years ago

I have wrote a function that writes other functions. I want to now apply smart indent to the file to improve the aesthetics of t...

2 Answers

Hi all, I have made a bit of code that stores information about species and stores a number of different fields that contain s...

Hi all, I am trying to simplify a set of expressions (all equal to zero) by eliminating certain variables and not others. Thi...

1 Answers

I am trying to convert some c++ code matlab code and need help because trying to capture the conditions on the if_else statement...

Hi all, I had wanted to replicate a heating cycle for a simulation based upon given heating rates (rate = [3 2 1] K/s) across ...

Hi all, I have written some code in matlab using a primary function that calls fsolve and a subfunction for passing extra arg...

Hi all, I have been trying to speed up the passing of extra parameters to a function that is used in fzero(). I have been try...

Hi All, I have an expression which contains the multiply operands from Type 'solvelib::VectorImageSet', where one of the oper...

Hi John, Thanks for your help, this program is definitely along the lines of what I need. Is there any way to have it use quart...

3078 views

Responded 5 years ago

I need some assitance trying to determine the proper fitting technique to fit a wide range of data to 3 peicewise polynomials. (...

Posted 5 years ago

I have created a work-around for this problem by using the ccode() and converting the code into a matlab function. This will all...

3066 views

Responded 4 years ago

Hi all, I am running into an error when trying to use "matlabFunction()" to convert a piecewise symbolic function into a matlab...

Posted 4 years ago

Hi all, I have been encountering a problem/inconsistency while using Matlab 2011b for defining and checking symbolic variable...

Asked 2 years ago

Check if sorted. Example: Input x = [1 2 0] Output y is 0

Solve this!

2 years ago

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

Load more