Community Profile

photo

Kristopher


Active since 2014

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


Help writing a simple function
I'm new to functions, and I was wondering how you would write a simple if, then function. if x<4, then f(x)=-1 if 4<=x<=...

6 years ago | 3 answers | 0

3

answers

Question


Double integral of a simple function
I am trying to write a program that will integrated (x-y)/(x+y)^3 twice from 0 to 1. Which command should I go about using?

9 years ago | 1 answer | 0

1

answer

Question


How to graph a f(x,y) function?
I took a Matlab course over the summer, and now have to graph a problem in calculus. I am rusty on my commands, so I'm not sure ...

9 years ago | 3 answers | 0

3

answers

Question


3-d plotting over a domain
How can I sketch a 3-d graph over a specified domain? For example, if I had y=x^2 and wanted to graph it over {(x,y):-3<=x, y<=3...

10 years ago | 1 answer | 0

1

answer

Question


Plotting in matlab over a rectangular domain
How would one go about plotting this equation? I know it has something to do with meshgrid or mesh/surf command. Sketch the gra...

10 years ago | 0 answers | 0

0

answers

Question


For this given code, what would the variable var equal?
What value does var have given the code fragment? for index = 1:2:7 if index <= 4 var(index) = index; ...

10 years ago | 1 answer | 0

1

answer

Question


Writing a simple funtion
I need to write a function in which you enter 2 inputs, and the output is the sum of the integers between those numbers. for exa...

10 years ago | 1 answer | 0

1

answer

Question


How can I shift rows and columns, and also replicating Sub matrixes.
First question, I have a 4x4 magic matrix, A. I want to create a new matrix D by shifting the rows in matrix A down by one, and...

10 years ago | 3 answers | 0

3

answers

Question


Finding indices in a magic 5x5 matrix in which the values are greater than 20?
There is a 5x5 matrix, and I am trying to find the values that are greater than 20. Would I use something like >>A=magic(5) ...

10 years ago | 1 answer | 0

1

answer

Question


How can I add a column of zeros to a magic 5x5 matrix A to create a 5x6 matrix C?
How can I add a column of zeros to a magic 5x5 matrix A to create a 5x6 matrix C? The element value in the 6th column should all...

10 years ago | 1 answer | 0

1

answer