Community Profile

# Kristopher

Active since 2014

#### 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<=...

5 years ago | 3 answers | 0

### 3

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?

7 years ago | 1 answer | 0

### 1

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 ...

7 years ago | 3 answers | 0

### 3

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...

8 years ago | 1 answer | 0

### 1

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...

8 years ago | 0 answers | 0

### 0

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; ...

8 years ago | 1 answer | 0

### 1

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...

8 years ago | 1 answer | 0

### 1

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...

8 years ago | 3 answers | 0

### 3

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) ...

8 years ago | 1 answer | 0