Recent content by mathia

  1. M

    Calculating Numerical Jacobian for Matrices A and B: Step-by-Step Guide

    Hi, I have two numerical matrices, A is 150*1 matrix (A=rand(150,1)) and B is a 1*5 matrix (B=rand(1,7)), and I need to have the jacobian of A with respect to B, that should be a 150*7 matrix, anyone help is appreciated. Mathias
  2. M

    MATLAB How Can I Automatically Load .mat Files in MATLAB?

    Thanks, But I want to load them automatically, I don't want to type the name of each individual mat file because I have 100000 mat files.
  3. M

    MATLAB How Can I Automatically Load .mat Files in MATLAB?

    Hi, I have some *.mat files and I need to read them automatically, they are like: PT2020-RSK1.778-ZONE49.8962.mat PT2020-RSK2.776-ZONE47.5451.mat PT2020-RSK3.776-ZONE46.041.mat PT2020-RSK4.7695-ZONE56.5417.mat PT2020-RSK5.7667-ZONE48.1113.mat Are there any ways to load them...
  4. M

    MATLAB Change X & Y-Axis Scale in MATLAB

    Hi, how can i change x and y-axis scale to make sure that x and y-axis are on the same scale in matlab? my x-axis is from 0 80 but the y-axis is from -3 to 5, so in plot the axis are not the same but i want to have same scale on both axis. Thank you.
  5. M

    MATLAB Select variable automatically in matlab

    I tested eval. It works correctly, but i have that error wen I use exist eval...!
  6. M

    MATLAB Plotting Matrix in Matlab Loop - Mathias

    thank you. yes, they are separate plots. can I change the color of each plot by using those commands? for example I want plot(A(:,1),A(:,2)) be read, plot(A(:,1),A(:,3)) be green and so on.
  7. M

    MATLAB Select variable automatically in matlab

    Hi, I want to select my variable automatically in MATLAB so I used the following commands: (may variable for example are: Mpoint1,Mpoint5,Mpoint14,...) for i=1:50 if exist (eval(['Mpoint' num2str(i)])); statements else...
  8. M

    MATLAB Plotting Matrix in Matlab Loop - Mathias

    Hi, I have a matrix for instance as follow: A=[0.087 11.43 17.14 22.86 28.57 34.29 40.00 45.72 51.43 57.15 0.174 5.671 8.506 11.34 14.17 17.01 19.84 22.68 25.52 28.35 0.261 3.732 5.598 7.464 9.330 11.19 13.06 14.92 16.79 18.66 0.349 2.747...
  9. M

    MATLAB Solving MATLAB Error: Assigning Names to New Matrices

    Dera Pythagorean, Thank you. The error is: Error: File: readr.m Line: 5 Column: 5 Unbalanced or unexpected parenthesis or bracket. How can i use sprintf in a struct to do that? i want that program make 20 matrices named s1,s2,...s20. then it check the data if data(j,1) is equal to i, then...
  10. M

    MATLAB Solving MATLAB Error: Assigning Names to New Matrices

    Hi, I have a sample date which is a 1000*8 matrix. i want to extract some information and assign them from y data to a some matrices, i want to assign the name of those new matrices automatically, how can i do that? i used the following codes but it gave me an error! data=load('case1.dat')...
  11. M

    Fortran Compiling a Fortran 77 Code on Ubuntu

    Hi, I have a fortran 77 code, I compiled it on cygwin in windows 7 by using f77 and gfortran, and it has been working correctly. I should use this code on Ubuntu, so I installed f77, gfortran and gcc compiler. I tried to comile that code by using f77 but it gave me the following error: > f77...
Back
Top