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...
Answered 4 years ago
This actually is the bottleneck of my whole application. It arises from the discretized domain into nodes that represent a volum...
4 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()...
4 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...
Answered 5 years ago
I have been having trouble using *<http://www.mathworks.com/help/techdoc/ref/str2func.html STR2FUNC>* to make a function handle ...
Asked 5 years ago
I have code that has worked fine in matlab 2010b using the subs() function for symbolic substitution, however the sam...
Asked 4 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...
I have made a bit of code that stores information about species and stores a number of different fields that contain s...
I am trying to simplify a set of expressions (all equal to zero) by eliminating certain variables and not others. Thi...
I am trying to convert some c++ code matlab code and need help because trying to capture the conditions on the if_else statement...
I had wanted to replicate a heating cycle for a simulation based upon given heating rates (rate = [3 2 1] K/s) across ...
I have written some code in matlab using a primary function that calls fsolve and a subfunction for passing extra arg...
I have been trying to speed up the passing of extra parameters to a function that is used in fzero(). I have been try...
I have an expression which contains the multiply operands from Type 'solvelib::VectorImageSet', where one of the oper...
I have created a work-around for this problem by using the ccode() and converting the code into a matlab function. This will all...
5 years ago
Hi all, I am running into an error when trying to use "matlabFunction()" to convert a piecewise symbolic function into a matlab...
5 years ago
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...
6 years ago
I need some assitance trying to determine the proper fitting technique to fit a wide range of data to 3 peicewise polynomials. (...
6 years ago
I have been encountering a problem/inconsistency while using Matlab 2011b for defining and checking symbolic variable...
Asked 3 years ago
Hi all, I need help trying to get the coefficients from a symbolic expression as separate variables. I have a set of equations ...
Hi all, I have a code that solves a set of equations using fsolve every time I take a timestep in a program diffusion program I...
Check if sorted.
Input x = [1 2 0]
Output y is 0
3 years ago
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Given n, find the sum of the digits that make up 2^n.
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.
Input s1 = 'Jack and Jill went up the hill';
Output s2 is 'a ...
Given two lists of numbers, determine the weighted average.
[1 2 3] and [10 15 20]
should result in
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...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries