matlab
यह क्या करती है
यह स्किल एजेंट को संख्यात्मक काम के लिए MATLAB और Octave कोड लिखना और ठीक करना सिखाती है। इसमें मैट्रिक्स संचालन, डेटा विश्लेषण और वैज्ञानिक प्लॉट शामिल हैं।
कब इस्तेमाल करें
- ✓जब उपयोगकर्ता को रैखिक बीजगणित या सिग्नल प्रोसेसिंग के लिए MATLAB या Octave स्क्रिप्ट चाहिए।
- ✓जब उपयोगकर्ता को MATLAB सिंटैक्स या किसी खास फ़ंक्शन में मदद चाहिए।
- ✓जब उपयोगकर्ता कोड को MATLAB और Octave के बीच बदलना चाहता है।
Skill का लिंक
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/matlab/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप एक MATLAB स्क्रिप्ट लिख सकते हैं जो मेरी रैखिक प्रणाली हल करे और नतीजा प्लॉट करे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट MATLAB या Octave सिंटैक्स और अंतर्निहित फ़ंक्शन इस्तेमाल करके स्क्रिप्ट लिखता, चलाता या ठीक करता है। स्क्रिप्ट टर्मिनल से matlab या octave कमांड के साथ चलाई जा सकती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
MATLAB/Octave Scientific Computing
MATLAB is a numerical computing environment optimized for matrix operations and scientific computing. GNU Octave is a free, open-source alternative with high MATLAB compatibility.
Quick Start
Running MATLAB scripts:
# MATLAB (commercial)
matlab -nodisplay -nosplash -r "run('script.m'); exit;"
# GNU Octave (free, open-source)
octave script.m
Install GNU Octave:
# macOS
brew install octave
# Ubuntu/Debian
sudo apt install octave
# Windows - download from https://octave.org/download
Core Capabilities
1. Matrix Operations
MATLAB operates fundamentally on matrices and arrays:
% Create matrices
A = [1 2 3; 4 5 6; 7 8 9]; % 3x3 matrix
v = 1:10; % Row vector 1 to 10
v = linspace(0, 1, 100); % 100 points from 0 to 1
% Special matrices
I = eye(3); % Identity matrix
Z = zeros(3, 4); % 3x4 zero matrix
O = ones(2, 3); % 2x3 ones matrix
R = rand(3, 3); % Random uniform
N = randn(3, 3); % Random normal
% Matrix operations
B = A'; % Transpose
C = A * B; % Matrix multiplication
D = A .* B; % Element-wise multiplication
E = A \ b; % Solve linear system Ax = b
F = inv(A); % Matrix inverse
For complete matrix operations, see references/matrices-arrays.md.
2. Linear Algebra
% Eigenvalues and eigenvectors
[V, D] = eig(A); % V: eigenvectors, D: diagonal eigenvalues
% Singular value decomposition
[U, S, V] = svd(A);
% Matrix decompositions
[L, U] = lu(A); % LU decomposition
[Q, R] = qr(A); % QR decomposition
R = chol(A); % Cholesky (symmetric positive definite)
% Solve linear systems
x = A \ b; % Preferred method
x = linsolve(A, b); % With options
x = inv(A) * b; % Less efficient
For comprehensive linear algebra, see references/mathematics.md.
3. Plotting and Visualization
% 2D Plots
x = 0:0.1:2*pi;
y = sin(x);
plot(x, y, 'b-', 'LineWidth', 2);
xlabel('x'); ylabel('sin(x)');
title('Sine Wave');
grid on;
% Multiple plots
hold on;
plot(x, cos(x), 'r--');
legend('sin', 'cos');
hold off;
% 3D Surface
[X, Y] = meshgrid(-2:0.1:2, -2:0.1:2);
Z = X.^2 + Y.^2;
surf(X, Y, Z);
colorbar;
% Save figures
saveas(gcf, 'plot.png');
print('-dpdf', 'plot.pdf');
For complete visualization guide, see references/graphics-visualization.md.
4. Data Import/Export
% Read tabular data
T = readtable('data.csv');
M = readmatrix('data.csv');
% Write data
writetable(T, 'output.csv');
writematrix(M, 'output.csv');
% MAT files (MATLAB native)
save('data.mat', 'A', 'B', 'C'); % Save variables
load('data.mat'); % Load all
S = load('data.mat', 'A'); % Load specific
% Images
img = imread('image.png');
imwrite(img, 'output.jpg');
For complete I/O guide, see references/data-import-export.md.
5. Control Flow and Functions
% Conditionals
if x > 0
disp('positive');
elseif x < 0
disp('negative');
else
disp('zero');
end
% Loops
for i = 1:10
disp(i);
end
while x > 0
x = x - 1;
end
% Functions (in separate .m file or same file)
function y = myfunction(x, n)
y = x.^n;
end
% Anonymous functions
f = @(x) x.^2 + 2*x + 1;
result = f(5); % 36
For complete programming guide, see references/programming.md.
6. Statistics and Data Analysis
% Descriptive statistics
m = mean(data);
s = std(data);
v = var(data);
med = median(data);
[minVal, minIdx] = min(data);
[maxVal, maxIdx] = max(data);
% Correlation
R = corrcoef(X, Y);
C = cov(X, Y);
% Linear regression
p = polyfit(x, y, 1); % Linear fit
y_fit = polyval(p, x);
% Moving statistics
y_smooth = movmean(y, 5); % 5-point moving average
For statistics reference, see references/mathematics.md.
7. Differential Equations
% ODE solving
% dy/dt = -2y, y(0) = 1
f = @(t, y) -2*y;
[t, y] = ode45(f, [0 5], 1);
plot(t, y);
% Higher-order: y'' + 2y' + y = 0
% Convert to system: y1' = y2, y2' = -2*y2 - y1
f = @(t, y) [y(2); -2*y(2) - y(1)];
[t, y] = ode45(f, [0 10], [1; 0]);
For ODE solvers guide, see references/mathematics.md.
8. Signal Processing
% FFT
Y = fft(signal);
f = (0:length(Y)-
अक्सर पूछे जाने वाले सवाल
क्या मैं MATLAB खरीदे बिना चला सकता हूँ?
हाँ। स्किल GNU Octave को मुफ़्त, ओपन-सोर्स विकल्प बताती है जो काफ़ी हद तक संगत है।
टर्मिनल से स्क्रिप्ट कैसे चलाऊँ?
जैसा स्किल दिखाती है, स्क्रिप्ट नाम के साथ matlab या octave कमांड इस्तेमाल करें।
क्या इसमें प्लॉटिंग शामिल है?
हाँ। यह वैज्ञानिक विज़ुअलाइज़ेशन बनाना कवर करती है।
जानकारी
लेखक का मूल विवरण
MATLAB and GNU Octave numerical computing for matrix operations, data analysis, visualization, and scientific computing. Use when writing MATLAB/Octave scripts for linear algebra, signal processing, image processing, differential equations, optimization, statistics, or creating scientific visualizations. Also use when the user needs help with MATLAB syntax, functions, or wants to convert between MATLAB and Python code. Scripts can be executed with MATLAB or the open-source GNU Octave interpreter.
लोकप्रियता
- GitHub स्टार
- 5.6k
- रैंकिंग में स्थान
- #14767
- लाइसेंस
- MIT
- अपडेट की गई
- 14/5/2026
कमेंट
- …
इस repository की और skills
office-academic-skill
5.6kआपके एजेंट को रिसर्च पेपर को Word रिपोर्ट में बदलने और संपादन योग्य चीनी-प्रधान शैक्षिक PowerPoint स्लाइड बनाने देती है, स्पीकर नोट्स और लेआउट जाँच के साथ।
research-writing-skill
5.6kआपके एजेंट को रिसर्च पेपर के भाग, सार और रिव्यूअर के जवाब लिखने, संशोधित करने और निखारने देती है, सूत्र, शीर्षक और उद्धरण जैसे दिए गए हैं वैसे ही रखते हुए।
scientific-toolkit-skill
5.6kआपके एजेंट को सिग्नल और इमेज प्रोसेसिंग, सांख्यिकी, सिमुलेशन और प्रकाशन-योग्य चित्रों के लिए MATLAB या Python वैज्ञानिक कोड लिखने और डीबग करने देती है।
matplotlib
5.6kआपके एजेंट को matplotlib से कस्टम Python चार्ट बनाने देती है, हर प्लॉट तत्व नियंत्रित करते हुए, और प्रकाशन-गुणवत्ता वाली PNG, PDF या SVG फ़ाइलें निर्यात करते हुए।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।