matlab and meshgrid function

In MATLAB environment, it will perform the same function as meshgrid function. can you write a function

3 Kommentare

Steven Lord
Steven Lord am 9 Jun. 2020
Why not just call the already-existing meshgrid function? Why write your own?
If this is part of all of a homework assignment, show us the code you've written to try to implement your version of the meshgrid function and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
mesut icen
mesut icen am 9 Jun. 2020
I know the meshgrid function, but I don't know how to do the same function.
Rik
Rik am 9 Jun. 2020
You haven't answered the questions Steven asked you.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 9 Jun. 2020

0 Stimmen

Yes, you could, if you wanted to. Then you could compare it to the official Mathworks version by doing this:
>> edit meshgrid.m
to see their source code.

2 Kommentare

mesut icen
mesut icen am 9 Jun. 2020
A function that will perform the same function as the meshgrid function
i need a function code
Image Analyst
Image Analyst am 9 Jun. 2020
I know you do. You said that already. Then why haven't you started writing it yet? You have the Mathworks version for reference, so what's holding you back? Why do you need an alternate version anyway?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Gefragt:

am 9 Jun. 2020

Kommentiert:

am 9 Jun. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by