Statistiques
RANG
285 736
of 301 984
RÉPUTATION
0
CONTRIBUTIONS
7 Questions
0 Réponses
ACCEPTATION DE VOS RÉPONSES
85.71%
VOTES REÇUS
0
RANG
of 21 478
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
I'm making a Gaussian Elimination function that can switch rows to allow the function to work on any matrix. The function works other than the row switching part. I'm not sure why that portion of my code isn't working.
function [x, red_A] = GEPivor(A, b) %Checking that b is a column vector if isrow(b) b=b'; else b=b;...
plus de 9 ans il y a | 1 réponse | 0
0
réponseQuestion
I have to make a code that does matrix multiplication. This is what I have so far but I'm not sure why it's not working. I cannot figure out if my for loops for k, i, and j are correct.
function [C] = mult(A, B) [n1,m1]=size(A); [n2,m2]=size(B); if m1~=n2 error('Matrix dimensions do not match');...
plus de 9 ans il y a | 1 réponse | 0
1
réponseQuestion
Use a Taylor series to write a function that approximates f(x)=sin(x) for any x with a max error=1e-3. It should behave just like MATLAB’s function for sin(x). Use the built-in mod function to allow for any value of x to account for periodicity.
This is what I have so far. I don't know how to incorporate mod into this function and how to not use the sin(x) function in it ...
plus de 9 ans il y a | 1 réponse | 0
1
réponseQuestion
Write a function [M] = myMax(A), where M is the maximum value in an array A. Don't use the built-in MATLAB function max. Then write a function (M) = myNMax(A,N) where M is an array consisting of the N largest elements in A using the myMax function.
My myMax function looks like this: function [M] = myMax(A) for i=1:(length(A)-1) M=A(i); if A(...
presque 10 ans il y a | 2 réponses | 0
2
réponsesQuestion
Expand the following code: The first line of code is required to initialize the array of which further calculations can be made.
Expand the following: B = randi([-10 10], [1 6]); C = B(B<0); So far I have but it keeps getting an error ...
presque 10 ans il y a | 1 réponse | 0
1
réponseQuestion
Write a function called “makemat” that will receive two row vectors as input arguments, and from them create and return a matrix with two rows. You may not assume that the length of the vectors is known. Also, the vectors may be of different lengths.
So far I have this but it's not working when the two vectors are different lengths: function [C] = makemat(A, B) if ...
presque 10 ans il y a | 1 réponse | 0
1
réponseQuestion
I need to find the minimum at what radius is the surface area smallest (use the “min” function in MATLAB, see MATLAB help for proper syntax of the min function) but I just can't get it to work.
So far I have: V=10 A=@(r)(pi*r.*sqrt(r.^2+((9*V.^2)./(pi.^2*r.^4)))) r=0:10; plot(r,A(r)); [m,i]=min(A) And...
presque 10 ans il y a | 2 réponses | 0
2
réponsesA résolu
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
presque 10 ans il y a


