One of the common error in MATLAB is :
Matrix dimensions must agree.
This error happen in many situation :
When you wan to put the output of an array in a another array. for example :
A = zeros (3,1)
B =[5,6]
if you write :
A=B
MATLAB will appear this error for you. As you see length of A is 3, But length of B is 2 . So, MATLAB can not put two values in three places.
Matrix dimensions must agree.
Basic question about MATLAB programming
Jump to
- Image Processing
- ↳ imshow
- ↳ Arithmetic
- MATLAB : General
- ↳ Installation
- ↳ Beginners Questions
- Error in MATLAB
- ↳ Basic
- ↳ ANFIS
- ↳ Bioinformatics Toolbox
- ↳ Curve Fitting
- ↳ Aerospace Toolbox
- ↳ Deep Learning
- ↳ Appdesigner
- ↳ Audio Video
- ↳ Simulink
- ↳ Big Data
- ↳ Categorical data type
- ↳ Class data type
- ↳ Code Tools
- ↳ Containers data type
- ↳ datamanager
- ↳ Data types
- ↳ datetime
- ↳ Editor
- ↳ demos
- ↳ graphics
- ↳ guide
- ↳ handle_graphics
- ↳ Robotics System Toolbox
- ↳ Simulink Check
- ↳ hardcopy
- ↳ images
- ↳ Inline
- ↳ Interpolation
- ↳ modes
- ↳ Exception
- ↳ Serial communication
- ↳ table
- ↳ timeseries
- ↳ Unit test
- ↳ RF toolbox
- ↳ Automated Driving Toolbox
- ↳ Fuzzy Logic Toolbox
- ↳ Code Analyzer
- ↳ DSP System Toolbox
- ↳ Machine Learning
- ↳ System Identification Toolbox
- ↳ main
- ↳ main2
- ↳ main3
- ↳ main4
- ↳ main5
- ↳ Image Processing
- ↳ Antenna Toolbox
- ↳ App Designer
- ↳ MATLAB Coder
- ↳ Partial Differential Equations
- ↳ ROS Toolbox
- ↳ Serial communication
- ↳ SimBiology
- ↳ Signal Processing
- ↳ Target Hardware
- ↳ Symbolic Math Toolbox
- ↳ Stateflow
- ↳ Vehicle Network Toolbox
- ↳ Computer Vision
- ↳ Wavelet transform
- ↳ Web App Server
- ↳ WLAN Toolbox
- ↳ xPC Target
Who is online
Users browsing this forum: No registered users and 1 guest