photo

Spaceman


Last seen: mehr als ein Jahr vor Aktiv seit 2024

Followers: 0   Following: 0

Professional Interests:
Aerospace and Defense

Statistik

MATLAB Answers

30 Fragen
3 Antworten

RANG
12.715
of 300.759

REPUTATION
4

BEITRÄGE
30 Fragen
3 Antworten

ANTWORTZUSTIMMUNG
100.0%

ERHALTENE STIMMEN
1

RANG
 of 21.081

REPUTATION
N/A

DURCHSCHNITTLICHE BEWERTUNG
0.00

BEITRÄGE
0 Dateien

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANG

of 170.900

BEITRÄGE
0 Probleme
0 Lösungen

PUNKTESTAND
0

ANZAHL DER ABZEICHEN
0

BEITRÄGE
0 Beiträge

BEITRÄGE
0 Öffentlich Kanäle

DURCHSCHNITTLICHE BEWERTUNG

BEITRÄGE
0 Discussions

DURCHSCHNITTLICHE ANZAHL DER LIKES

  • Thankful Level 4
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Using MATLAB to do Numeric Calculus
So I am culminating all of my newfound knowledge to solve and show a simple calculus problem. However I am running into issues.....

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Concatenating a cell array
Given: A cell array with names where names={'Harry','Xavier','Sue'}; Find: How to concantenate a '1' at the end of each charact...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Printing sentences using cell arrays
Given: 3 names, 3 verbs, 3 nouns; how to initalize a cell array. Find: I need to print random elements from each of the above t...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


I think this is vectorizing
Given: Write a code that prompts user to enter a number of rows and columns. Create a matrix, with the provided size that has ra...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Nested While loop functions
Given: I have created a simple number guessing game that prompts the user to guess a random number between 1 & 100 and will info...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
Function that returns 2 values
function [Z,P]=myfun(A) Z=length(A(A==0)); P=prod(A(A>2)); end % Code used to call funtion: A=randi([-5 5],40); [Nzero,pro...

fast 2 Jahre vor | 0

| akzeptiert

Frage


if-statements for reassigning values
Given: Write a script that creates a random integer N, which is in the range [-100,100]. If that number is in the range [-20,20...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Taylor Series Expansions for sin(x)
Given: sin(x)=(-1)^i*x^(2*i=1)/(2i+1)!...or... ... Find: Code that calculates the Taylor series for sin(pi/3) using the equatio...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


for-loop from an if-statement
Given: Use previous code to make a for-loop Find: Prompt the user to enter the number of grades (N) that they are trying to cla...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


If statements and strcmp function
Given: strcmp = matching case, strcmpi=ignoring case Find: Prompt user to enter an angle; prompt user to determine if the angle...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Fibonacci sequence -a) Write a script to make a  to  sequence vector by using for loop. b) Calculate sum of first ten Fibonacci numbers
In mathematics, the Fibonacci sequence is a sequence in which each number is the sum of the two preceding ones. fib=[0 1]; for...

fast 2 Jahre vor | 0

Beantwortet
Write a for loop that calculates the first 35 numbers of the Fibonacci Sequence.
Success. fib=[0 1]; for n=3:35; fib(n)=fib(n-1)+fib(n-2); end fprintf('The first 35 Fibonacci sequence numbers are: ')...

fast 2 Jahre vor | 1

| akzeptiert

Frage


Sig figs on the rand function
Just another general question here, is there a reason the rand function has 6 sig figs? i.e. 12.3456 Is there a way to change t...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


meaning of f in fprintf function
So this is just a general question, as I familiarize myself with the fprintf and all other glorious functions... When I use the...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting 3D functions
Given: Create both a contour and surface plot for the following function. Find: Create an x vector between -2 and 2, with a ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Function that returns 2 values
Given : Your function header should look like the following: function [Z,P]=myfun(A) Find : Create a function myfun that accep...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Writing a simple loop
Given: For this exercise, you will write code to sum all the positive integers in a matrix of random integers and save that sum ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Writing a function that accepts input argument that is one of 3 things
Given: Write a function that accepts an input argument that is one of 3 things: a vector, a matrix, or a scalar of values. The ...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Write a for loop that calculates the first 35 numbers of the Fibonacci Sequence.
Given : The Fibonacci Sequence is a famous sequence, where the value of each number in the list is the sum of the two before it....

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Using the clear command in functions?
So I was practicing functions. . . My habit for writing scripts is to put clear, clc, close all before every section, unless var...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Weird question about the editor...
So this might be insanely daft of me to ask... But most of my code writing takes place in the editor. When writing code/copy pa...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Create a function that uses indexing
Given: Create a function called pick_username that will receive an input argument, which is a vector of values. The function wil...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting a function inside of another function with no outputs
Given: Not all functions have to have output arguments. You could have a function that does something, but doesn't return an act...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Function with 3 input arguments
Given: Write a function to calculate the position of a projectile at any given time, t. The function should have 3 input argumen...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


User Defined Functions in MATLAB
Given: Write a function prodby2_username that will recieve a value of a positive integer N and will calculate and return the pro...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Defining and calling functions in MATLAB
Given: Recall that Fahrenheit and Celsius are related by the following equation: Find: Create a function called tempC2F that w...

fast 2 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Writing code to call functions
Given: Find: Create a function that calculates the surface area of a sphere when provided with a radius as the input argument...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting sine functions using linspace command
Given: Find: Create a variable y that calculates the following function for the range of t. The variable, t, should contain...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to calculate and display electricity used in a month using fprintf?
Given: A power company charges 6.6 cents per KWH of electricity. Find: Write a script that prompts the user for the number of ...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to use fprintf function to display information properly?
Given: Radius of 10,15,20 ft and height of 6, 12, 18, 24, 30 ft; Volume of a cylinder is pi*r^2*h Find: Display the various hei...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden