photo

amateurintraining


Actif depuis 2017

Followers: 0   Following: 0

Statistiques

MATLAB Answers

33 Questions
0 Réponses

RANG
20 039
of 300 759

RÉPUTATION
2

CONTRIBUTIONS
33 Questions
0 Réponses

ACCEPTATION DE VOS RÉPONSES
39.39%

VOTES REÇUS
2

RANG
 of 21 081

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 170 900

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

Question


distance between array entries
How do you write code to get which of the entries stored in an array it is closest to for each data point? For example: ar...

environ 8 ans il y a | 3 réponses | 0

3

réponses

Question


How do you use Buffon's Needle and return the probability?
I understand conceptually that the needle only intersects a line when x<=(a/2)*sin(theta) But how do I create a function t...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


matlab function equivalent to fit
Is there a function that is equivalent to the built-in function fit? Something that is simple and easy to understand how the exp...

environ 8 ans il y a | 2 réponses | 0

2

réponses

Question


Incorrect answer - Incorrect looping?
I have a code: function [ I, h ] = Simpson( f, a, b, tol ) n=2; h=(b-a)/n; x=h/3; I=x*(f(a)+4*f((a+b)/2)+f(b)); Iold=I...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Help with loops calculating value
I have a function: function [ I, h ] = Simpson( f, a, b, tol ) n=2; h=(b-a)/n; x=h/3; I=x*(f(a)+4*f((a+b)/2)+f(b)); Io...

environ 8 ans il y a | 2 réponses | 0

2

réponses

Question


insert row into table
Hi. I want to make a function. This function has the input a table and a new value. How do I insert the new value into the table...

environ 8 ans il y a | 2 réponses | 1

2

réponses

Question


solve larger than 3x3 matrix and error message
I have a function: function [A_new, b_new] = forward_elimination(A, b) %FORWARD_ELIMINATION - Performs forward elimination...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Simplify matrix to have ones in diagonal
I have a function: function [A_new, b_new] = forward_elimination(A, b) %FORWARD_ELIMINATION - Performs forward elimination...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


convert to recursion maintaining one input
I have a function: function [ filled ] = travelDistance( blank ) filled=helper(blank); function filled = helper(f,x,y) f...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Recursive function to find median
I have a function as follows, intended to calculate the median using recursion (without any built in functions): function [...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


How do I turn the for function into a recursive function?
I have a function: function [ filled ] = travelDistance( blank ) %TRAVELDISTANCE % blank: two-dimensional array compris...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


turn function to recursive
I have a function: function [ array2 ] = charReversal( array1 ) %CHARREVERSAL reverses a character array using recursion ...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Nested function: FUNCTION keyword use is invalid here. This might cause later messages about END
I have a function as seen below and am trying to create a nested function: function [ sortedArray ] = mergeSort( doubl...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Create a function to calculate error, approximation, exact, etc.
How do you create a function to calculate: <</matlabcentral/answers/uploaded_files/90910/Capture.PNG>> I have attempted to...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Help with loop error
My function is as follows but keeps coming up with the error that the output argument "approx" is not assigned. How do I change ...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Creating a function for a two-dimensional array
I have a function: function [ filled ] = travelDistance( blank ) %TRAVELDISTANCE % blank: two-dimensional array compris...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Creating a function (pathfinding algorithm)
How do you create a function: function [ filled ] = travelDistance ( blank ) where: blank is a two-dimensional array com...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Function for day of the year
How do I write a function that responds the days of the year when given a certain date? For example, January 7th, 2017 would res...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Finding a character and returning that character
I have a function: function [ vowels ] = findVowels( charCell ) %FINDVOWELS % charCell: a two-dimensional cell array an...

environ 8 ans il y a | 2 réponses | 0

2

réponses

Question


Generate the output as a cell array using for-loops
I have a function: function [ squaresCell ] = generateSquares( a,b ) %GENERATESQUARES % a, b are two integers where a<...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


display max (character)
Hi! I have a function and I want to display the max of two scores. For example, if A=5 and B=9 and C is the max, I want C to re...

environ 8 ans il y a | 2 réponses | 0

2

réponses

Question


Creating structure array that accumulates
How do you create a structure array such that the structure array has five fields that are initially empty then more entries are...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


2x1 structure array to structure array
I have a code: function [ schedule ] = addGameStruct( schedule,hometeam,awayteam,homescore,awayscore ) %ADDGAMESTRUCT % ...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Function with a structural array
I am trying to make a function that generates a structural array: function [ schedule ] = addGameStruct( schedule,hometeam,...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


How to generate plot of a function?
I have the code: function [ z ] = fun( ) %FUN Produces 3D surface plot with contours below the surface of f(x) dx=0.1...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Creating a function with display
Create a function with the following header: function [ schedule ] = addGameStruct ( schedule , hometeam , awayteam , ho...

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


Define an input that is ONLY a 3-by-4 matrix
Hi. I have a function called modify that I want to perform a series of tasks. How do I specifiy my input so that only a 3-by...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


Deleting zeros in front of a vector
I have to solve this problem: Write a function called unpad, which takes a row vector, removes all zeros at the beginning of...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


Array as an input
I have an input A into a function and I want to define the function as a 3-by-4 matrix. How do I write the input?

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


Using an array as an output
I have a function and the output must be a one-dimensional array consisting of the elements y1, y2, y3, and y4. Do I have to...

plus de 8 ans il y a | 1 réponse | 1

1

réponse

Charger plus