Answered
how to use fzero function?
First, fzero finds roots of nonlinear functions and should not be symbolic. If you have a polynomial you should use roots() func...

5 years ago | 0

Answered
How to "invert" integral function?
I might not understand your question completely. If you know the temperature and interested wavelength range, the curve can be g...

5 years ago | 1

Answered
How to stop rounding values when i use array?
The values in your array (a) are not rounded, they are only rounded in the display of them. To see the actual values, change for...

5 years ago | 1

Answered
convert image matrix to row vector
yourMatrix(:)';

5 years ago | 0

Solved


Consecutive Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on the largest consecutive run of ...

5 years ago

Solved


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

5 years ago

Solved


Draw Letter 'L'

5 years ago

Solved


center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...

5 years ago

Solved


Bernoulli's Equation
Bernoulli's equation states that for an incompressible fluid the following summation is constant across the flow: v^2/2 + g*z + ...

5 years ago

Answered
Trying to solve a four variable equation for a range of values
If you want all possible combinations, then use ndgrid. Z0=1.5; Fmin=0:10; Rn=1:20; gammas=-10:1; gammopt=13:.1:20;%I have ...

5 years ago | 0

Answered
How write closed interval inside loop
You should just make g1, g2, and g3 matrices. No loop is necessary. g1=[l1',m1'-2*v1',m1'+3*v1',2*u1']; g2=[l2',m2'-4*v2',m2'+...

5 years ago | 0

| accepted

Solved


Number Puzzle - 108

5 years ago

Solved


Number Puzzle - 107

5 years ago

Solved


Number Puzzle - 106

5 years ago

Solved


Number Puzzle - 105

5 years ago

Answered
errors using Numerical Integration
y = @(x) 1./(sqrt(1+x.^4)); %just need a dot (./) a = -1; b = 1; S_int = integral(y,a,b);

5 years ago | 0

Answered
Cody Problem 38. Return a list sorted by number of occurrences
Take a look at the functions, histcounts(), sort(), and unique(). By combining these functions you can answer the problem in a f...

5 years ago | 1

| accepted

Solved


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

5 years ago

Answered
Uniformly distributed random variables
nomR1=1000; nomR2=2000; R1=nomR1*(.05*(2*rand(1,1e4)-1)+1); R2=nomR2*(.05*(2*rand(1,1e4)-1)+1); x=(R1.*R2)./(R1+R2);

5 years ago | 0

Answered
Add an increment to a matrix [1x50]
velocity_temp=[20:-.5:9,7.5:-1.5:0];

5 years ago | 1

| accepted

Answered
Plotting 2 functions on the same graph
syms x; y = (2*x-1)/(x+1); fplot(y); hold on g = finverse(y); fplot(g) grid;

5 years ago | 1

Answered
Calling a function without an Output argument
Change the number of input arguments instead function y=Myplot(varagin) y=figure; if nargin==2 subplot(2,1,1); ...

5 years ago | 0

Answered
Function for power regression
g=fit(m',T','a*x^b','StartPoint',[.02 .2]);

5 years ago | 0

Answered
How to find value of function for array of inputs ?
f=@(x)x.^2; x=[1 3 4 6]; y=f(x);

5 years ago | 1

Answered
Fit of own function in plot
The documentation in fit() function is good. Just follow the guidance on fit a curve defined by a file. https://www.mathworks.c...

5 years ago | 0

Answered
Defining equations which include summation of n-values
I assume alpha, A0, t, and g are contant scalars. theta=0:.01:2*pi;%depending on what you want values you want for theta C=ar...

5 years ago | 1

Answered
How can i use for loop instead of this?
No loop needed. n*(n-1)*(n-2).../factorial() is just -1 or 1 alternating, placed -1 with x raised to power to alternate this sig...

5 years ago | 1

| accepted

Answered
Passing vector argument into a function returns only one value
function [a] = ustep(n) a=zeros(size(n)); a(n>=0)=1; end

5 years ago | 1

| accepted

Load more