Community Profile

photo

Connor


Last seen: 1 year ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


How do I fix this invalide expression error?
I keep receiving this error with my code: Here is my code, Line 5 is in the "%Define the function handles" section, specifica...

1 year ago | 1 answer | 0

1

answer

Question


Not sure why I am getting errors for my anonymous functions.
I have this code: k = randn(1); % random variable % define all of your variables below f = @(x) (sin(x)+4.*x)/x.^2 A = f(5) ...

1 year ago | 2 answers | 0

2

answers

Question


Not enough input arguments for an anonymous function.
I have this anonymous function: g = @(x,k) exp(cos(x))^k I am getting this error: Not enough input arguments. Error in so...

1 year ago | 1 answer | 0

1

answer

Question


How to have a function return a coordinate point?
I am trying to get a function to return (x,y) coordinates for a given angle theta. I am struggling to figure out how to get the ...

1 year ago | 2 answers | 0

2

answers

Question


How do I replace one value of a matrix with another value from a different matrix?
How to you swap a variable in one matrix with another variable from a different matrix without typeing in (for example) E(1,2) =...

1 year ago | 2 answers | 0

2

answers

Question


How do I make a column vector to add to my original matrix?
Im trying to solve this: You want to add 4 to each element in the first row of A, subtract 1 from each element in the second row...

1 year ago | 2 answers | 0

2

answers

Question


Doing arithmatic to specific rows of a matrix
I have this matrix in part a) called Mat1 and for part c) I need to do different arithmatic opertations to individual rows. How ...

1 year ago | 1 answer | 0

1

answer

Question


Invalid use of operator. error, dont know what to change to fix it.
The function I have to plug into is I keep getting the error: File: solution.m Line: 5 Column: 22 Invalid use of operator. ...

1 year ago | 1 answer | 0

1

answer