{"id":15057199,"url":"https://github.com/jake-w-liu/MeshGrid.jl","last_synced_at":"2025-10-04T16:32:04.659Z","repository":{"id":243183129,"uuid":"811705374","full_name":"jake-w-liu/MeshGrid.jl","owner":"jake-w-liu","description":"MeshGrid.jl is a simple Julia module that provides functionality similar to MATLAB's meshgrid function.","archived":false,"fork":false,"pushed_at":"2024-07-09T13:59:32.000Z","size":20,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T19:58:42.542Z","etag":null,"topics":["julia"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jake-w-liu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-07T06:20:17.000Z","updated_at":"2024-10-26T01:59:39.000Z","dependencies_parsed_at":"2024-07-09T17:12:50.983Z","dependency_job_id":"def9d617-c275-410f-89c8-aea74c428e98","html_url":"https://github.com/jake-w-liu/MeshGrid.jl","commit_stats":null,"previous_names":["akjake616/meshgrid.jl","jake-w-liu/meshgrid.jl"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jake-w-liu%2FMeshGrid.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jake-w-liu%2FMeshGrid.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jake-w-liu%2FMeshGrid.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jake-w-liu%2FMeshGrid.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jake-w-liu","download_url":"https://codeload.github.com/jake-w-liu/MeshGrid.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235285438,"owners_count":18965324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["julia"],"created_at":"2024-09-24T22:03:49.448Z","updated_at":"2025-10-04T16:31:59.369Z","avatar_url":"https://github.com/jake-w-liu.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MeshGrid.jl\n\n[![Build Status](https://github.com/akjake616/MeshGrid.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/akjake616/MeshGrid.jl/actions/workflows/CI.yml)\n\n## Overview\n\n`MeshGrid.jl` is a simple Julia module that provides functionality similar to MATLAB's `meshgrid` function. It generates coordinate matrices from vectors or ranges, which are useful for evaluating functions over a grid in two or three dimensions.\n\n## Installation\n\nTo install `MeshGrid.jl`, use the following command in the Julia REPL:\n\n```julia\nusing Pkg\nPkg.add(\"MeshGrid\")\n```\n\n## Some Examples\n\nThese examples illustrate how `MeshGrid.jl` can handle different data types and mixed types. This flexibility makes it easier to translate MATLAB code into Julia, providing a familiar interface for those transitioning from MATLAB to Julia. Note that the element data type of the output grid will be the promotion of the input element data types.\n\n### Example 1: Creating 2D Grid from Range\n\n```julia\nx = -1:1:1\ny = -1:0.5:1\n\nX, Y = meshgrid(x, y)\n```\n\n### Example 2: Mixing Integers and Floats in 2D Grid\n\n```julia\nx = 1:3  # integer range\ny = [1.0, 2.5, 4.0]  # Float vector\n\nX, Y = meshgrid(x, y) # elements are promoted to Float64\n```\n\n### Example 3: Fusing Different Data Types to form 3D Grid\n\n```julia\nx = 1:3  # integer range\ny = [1.0, 2.5, 4.0]  # float vector\nz = [\"alice\", \"bob\"] # string vector\n\nX, Y, Z = meshgrid(x, y, z) # elements are promoted to Any\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjake-w-liu%2FMeshGrid.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjake-w-liu%2FMeshGrid.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjake-w-liu%2FMeshGrid.jl/lists"}