Recent content by kelvin490

  1. kelvin490

    Easy way to make carbonic acid from other chemicals

    Hi, everyone. I would like to test for the reaction between carbonic acid and copper (to simulate the effect of acid rain on copper). However, I find that many supplies failed to provide carbonic acid (either in powder or liquid form). Some says that carbonic acid is unstable and thus cannot...
  2. kelvin490

    MATLAB Solving equation with integration using MATLAB

    I would like to solve an equation below using MATLAB: All the parameters except p are known, so I only need to solve for p. However since I need to consider the sign of the integrand and there is an absolute value sign in it I don't know how to solve it. Could anyone please help? Thank you.
  3. kelvin490

    MATLAB Matlab -- how to make a smooth contour plot?

    I want to represent data with 2 variables in 2D format. The value is represented by color and the 2 variables as the 2 axis. I am using the contourf function to plot my data: load('data.mat') cMap=jet(256); F2=figure(1); [c,h]=contourf(xrow,ycol,BDmatrix); set(h, 'edgecolor','none'); Both xrow...
  4. kelvin490

    MATLAB How to make 2D plot of points with different colors?

    I have changed to use scatter instead of plot, as suggested by other So the command becomes: scatter(x_dis,y_dis,[],dis_color(1:nDis,:),'.') It works like a charm
  5. kelvin490

    MATLAB How to make 2D plot of points with different colors?

    I want to make a 2D plot of points with different x, y coordinates and have colors depending on a separate variable. I have make column vectors for x and y coordinates and another column containing 1 or -1. I would like to represent the points with 1 as red and -1 as blue points. I have codes as...
  6. kelvin490

    MATLAB How to extract data from existing JPEG/TiFF graph?

    Is there any method to extract data from a graph in JPEG/TIFF format, using simple software such as MATLAB? I have a graph as shown below: I only have this picture but no raw data and I want to plot the black curve in this graph. How to get approximate numerical data of the x and y axis...
  7. kelvin490

    MATLAB How can I append new columns to an existing Excel file with MATLAB?

    Finally I solve it in the following way: if (step==1) xlswrite(filename,array,sheetname,'A1'); %Create the file else [~,~,Data]=xlsread(filename,sheetname); %read in all the old data OriCol=size(Data,2); %get the column number of the old data NewCol=OriCol+1; %the new array...
  8. kelvin490

    MATLAB How can I append new columns to an existing Excel file with MATLAB?

    I would like to ask how to use MATLAB to append new columns into existing excel file without altering the original data in the file? In my case I don't know the original number of columns and rows in the file and it is inefficient to open the files one by one and check in practice. Another...
  9. kelvin490

    I Same vector space for arbitrary independent vectors?

    Thanks. It's seems there is a theorem that a vector space Q that the dimension is n can have any set of n linearly independent vectors k1,k2...kn as its basis. How can we ensure that k1,k2...kn doesn't form a vector space other than Q but not Q? I have this question because two different set of...
  10. kelvin490

    I Same vector space for arbitrary independent vectors?

    If we use n linearly independent vectors x1,x2...xn to form a vector space V and use another set of n linearly independent vectors y1,y2...yn to form a vector space S, is it necessary that V and S are the same? Why? If we have a vector space Q that the dimension is n, can we say that any set of...
  11. kelvin490

    MATLAB How to set zero value boxes transparent in 3D plots?

    I used a function called ind2patch to make a big 3D block which contains a number of smaller blocks in 3 dimensions. Each small block has a value which the magnitude is represented by a color.One example is shown below: However, most of the boxes have very low or zero value and I don't need to...
  12. kelvin490

    Different format of .dat files in different software

    Yes, it's a Linux cluster and my OS is Win 8. In the cluster I use commands like pgf90 to compile the program and in my PC I use GNU or PGI Fortran. Are there any means to convert the files back to desirable format?
  13. kelvin490

    Different format of .dat files in different software

    I can attach it now. Thanks a lot.
  14. kelvin490

    Different format of .dat files in different software

    Sorry for the trouble. Actually I tried to attach pictures directly but it still ask me to put the picture's URL. I copied the link to it but it seems doesn't work. For the .dat file, I only know it's .DAT type by checking the properties of the file. In Fortran I just use the "open" function...
  15. kelvin490

    Different format of .dat files in different software

    I have generated some .dat files using Fortran on a cluster. I need to use WinSCP(https://winscp.net/eng/download.php) to access files in the cluster so sometimes I just use the WinSCP to open the .dat files generated. The data can be shown regularly like this one...
Back
Top