I'm trying to take the inverse of an image matrix by doing the following:
>> A=imread ('noise.jpg');
>> inv(A)
But I'm getting the following error:
? Undefined function or method 'inv' for input arguments of type 'uint8'.
How can I change the image matrix so that I can take the...
this question is for a homework problem. It seems that every source I look at, the dielectric constant for air at 1 atm is 1.00059. Is this value safe to assume for all temperatures?
For Snell's law n2sin(theta2)=n1sin(theta1), I know that air has an index of refraction of approximately 1. But how do I find the actual value for the index of refraction if I know the temperature jump and pressure? I know that from what I am given, I can find the densities of the air, but then...
I'm not sure how to do this... I have the following velocity field:
t = [1,5,10] % in seconds
u=5*t*y
v=2*t^2*x^2
How do I plot in MATLAB the streamlines going through (x0,y0) = (0,0) at t = 1,5, and 10 s?
I'm pretty new in MATLAB, and I can't seem to get it to display a signal. I have the following:
t=1:1:100;
s= 2*sin(2*pi*.05*t)*5*sin(2*pi*2*t)+.75*randn;
plot(t,s)
But i keeps giving me the following error:
? Error using ==> mtimes
Inner matrix dimensions must agree.
Error in...