Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a matrix 180*360*120.
120 is time series of temperature in kelvin. now I want to convert this temperature from kelvin to Celsius. kindly suggest me a Matlab code for this conversion.
So what I understand is that you have a matrix A of dimensions 180*360*120 i.e. having 7776000 elements of kelvin temperatures. These Kelvin you want in Celsius. Can you not simply have the following code to get the result?
B=A-273.15
where B is your matrix with temperatures in Celsius
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
My problem is to convert my 294912x39 2d matrix into a 3D matrix 128X128X18
Using the reshape function in matlab I get errors.So, my idea is to convert it manually. My 2d matrix is 294912x39 and the 3D matrix I need is 128x128x18. Anyone could you help me?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 months ago.
Improve this question
I wan to give x,y,z coordinates to a point, for example to P point.
The P point coordinates are: P=(0,1,1)
How can I give the values in Matlab?
I tried P=(0,1,1) and Px=0 Py=0 Pz=0 ,but I need it to an equation.
one variable can store n-dimensional coordinates
P=[0 1 1];
you can also do this:
px=0;
py=1;
pz=1;
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it possible to convert a .PNG image to an array of numerical values (e.g. red, green, blue values) that I can work with using MATLAB? If so, how can I do this?
not sure what you mean.
if you import imread('someImage.png') you get a n x m x 3matrix
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How to calculate the energy of the function tri(2t+5/6) using matlab?[where tri is triangular pulse function]
Define trisqr square function and integrate over it:
trisqr=#(x) tri(x).*tri(x);
xmin=-2;
xmax=2;
Energy=integral(trisqr,xmin,xmax)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can I detect P-R interval from an ECG signal using MATLAB ? Can anyone give me code or any steps to determine this ?
Find the P wave (s).
Find the QRS complex(es).
Pair up a QRS complex and its preceding P wave. Make sure to avoid cases where there is a PVC or other abnormal beat in between.
Subtract the time of the P wave from the time of the R peak in the QRS complex.