when I compile the command line, it is error. I do not know what is wrong? any any help. Thanks!
Create the shape inserter object.
shapeInserter = vision.ShapeInserter;
#%Read the input image.
I = imread('cameraman.tif');
#%Define the rectangle dimensions as [x y width height].
rectangle = int32([10 10 30 30]);
#%Draw the rectangle and display the result.
J = step(shapeInserter, I, rectangle);
imshow(J);
Error:
Undefined variable "vision" or function "vision.ShapeInserter".
Error in ve_hcn (line 3)
shapeInserter = vision.ShapeInserter;
ver :
MATLAB Version: 8.0.0.783 (R2012b)
MATLAB License Number: 724504
Operating System: Microsoft Windows 7 Version 6.2 (Build 9200)
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server >VM mixed mode
------------------------------------------------------------------------------------------------------- MATLAB Version 8.0
(R2012b) Communications System Toolbox Version
5.3 (R2012b) Control System Toolbox Version 9.4 (R2012b) DSP System Toolbox
Version 8.3 (R2012b) Image Processing Toolbox
Version 8.1 (R2012b) MATLAB Compiler
Version 4.18 (R2012b) MATLAB Report Generator
Version 3.13 (R2012b) Optimization Toolbox
Version 6.2.1 (R2012b) Parallel Computing Toolbox
Version 6.1 (R2012b) Partial Differential Equation Toolbox
Version 1.1 (R2012b) Signal Processing Toolbox
Version 6.18 (R2012b) Statistics Toolbox
Version 8.1 (R2012b) Symbolic Math Toolbox
Version 5.9 (R2012b)
vision.ShapeInserter is in the Computer Vision System Toolbox, which you don't seem to have installed. In the same toolbox (since release R2013a) there is also a function insertShape, which is easier to use.
Related
Im trying to run a simulation (done in matlab 2020a I guess) but when running it , it gives the next error
Failed to find 'Power Electronics/Full-Bridge Converter' in library 'powerlib' referenced by Full-Bridge Converter'
But in my install it already has the toolboxes installed
SimElectronics Version 2.5 (R2014a)
SimMechanics Version 4.4 (R2014a)
SimPowerSystems Version 6.1 (R2014a)
Simscape Version 3.11 (R2014a)
I have been told these are necessary,but then what? the needed toolboxes are supposed to be installed. What more is needed?
PD
Some friend told me the simpowersystems were merged alongside the simelectronics, into SimscapePowerSystems, so guessing the model is writen in that, whats the lower version with comes with these toolbox?, 2017?, 2016?
I am trying to use the MATLAB Symbolic Math Toolbox to solve simple equations, but I am not receiving the expected/desired result.
I'm using Windows 10, and this is the output of entering ver into the Command Window:
MATLAB Version: 9.6.0.1335978 (R2019a) Update 8
MATLAB License Number: STUDENT
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19041)
Java Version: Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.6 (R2019a)
Simulink Version 9.3 (R2019a)
Control System Toolbox Version 10.6 (R2019a)
Curve Fitting Toolbox Version 3.5.9 (R2019a)
DSP System Toolbox Version 9.8 (R2019a)
Data Acquisition Toolbox Version 4.0 (R2019a)
Image Processing Toolbox Version 10.4 (R2019a)
Instrument Control Toolbox Version 4.0 (R2019a)
Optimization Toolbox Version 8.3 (R2019a)
Parallel Computing Toolbox Version 7.0 (R2019a)
Signal Processing Toolbox Version 8.2 (R2019a)
Simulink Control Design Version 5.3 (R2019a)
Statistics and Machine Learning Toolbox Version 11.5 (R2019a)
Symbolic Math Toolbox Version 8.3 (R2019a)
According to the in-app documentation, the solve function should follow this syntax:
syms x
eqn = sin(x) == 1;
solx = solve(eqn, x)
And the expected output from this is:
solx =
pi/2
However, when I run the same commands I receive:
>> syms x
>> eqn = sin(x) == 1;
>> solx = solve(eqn, x)
solx =
x
I have tried a number of even simpler equations with the same result (receiving symbol instead of a numerical value).
What am I doing incorrectly?
Thanks in advance.
As discussed in the comments, your MATLAB installation does not seem to use the function in ...\toolbox\symbolic\symbolic\solve.m when a solve command is issued; instead, an unrelated function provided by the maple toolbox is used, leading to some confusion. This issue can be solved by reordering the MATLAB search path:
p=path();
path(p,'C:\Program Files\MATLAB\R2019a\toolbox\maple');
i don't know why i get error at opticFlow = opticalFlowHS; in matlab2015a
Undefined function or variable 'opticalFlowHS'.
Error in test (line 3)
opticFlow = opticalFlowHS;
these toolboxes already installed.
MATLAB Version 8.5 (R2015a)
Image Acquisition Toolbox Version 4.9 (R2015a)
Image Processing Toolbox Version 9.2 (R2015a)
To be able to use opticalFlowHS you need to have Computer Vision System Toolbox installed.
I am try to use the matlab parallel computing feature.
I first typed "ver" to check if I have already installed Parallel Computing Toolbox, it did
>> ver
----------------------------------------------------------------------------
MATLAB Version: 9.0.0.341360 (R2016a)
MATLAB License Number: 353265
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 10240)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-
Bit Server VM mixed mode
----------------------------------------------------------------------------
....
Parallel Computing Toolbox Version 6.8 (R2016a)
....
So it seems that I have already installed it. But when I try to use it, it just doesn't work
>> matlabpool('open',2);
Undefined function or variable 'matlabpool'.
>> matlabpool open
Undefined function or variable 'matlabpool'.
The command (as of R2013b) is parpool to create the pool of workers.
parpool(2)
I am trying to make my final.m file standalone, but MATLAB will not proceed with the ccompilation and it gets stuck every time:
ant:
<ant>
<mkdir dir="C:\Users\TG\Desktop\updated\final\for_redistribution" />
<mkdir dir="C:\Users\TG\Desktop\updated\final\for_testing" />
</ant>
mcc -C -o final -W WinMain:final -T link:exe -d C:\Users\TG\Desktop\updated\final\for_testing -v C:\Users\TG\Desktop\updated\final.m
Test checkout of feature 'Compiler' failed.
mcc failed.
When I type ver, I get this:
MATLAB Version: 8.3.0.532 (R2014a)
Operating System: Microsoft Windows 7 Ultimate Version 6.1 (Build 7600)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
---------------------------------------------------------------------------------------------
MATLAB Version 8.3 (R2014a)
Simulink Version 8.3 (R2014a)
Aerospace Blockset Version 3.13 (R2014a)
Aerospace Toolbox Version 2.13 (R2014a)
Bioinformatics Toolbox Version 4.4 (R2014a)
Communications System Toolbox Version 5.6 (R2014a)
Computer Vision System Toolbox Version 6.0 (R2014a)
Control System Toolbox Version 9.7 (R2014a)
Curve Fitting Toolbox Version 3.4.1 (R2014a)
DO Qualification Kit Version 2.3 (R2014a)
DSP System Toolbox Version 8.6 (R2014a)
Data Acquisition Toolbox Version 3.5 (R2014a)
Database Toolbox Version 5.1 (R2014a)
Datafeed Toolbox Version 4.7 (R2014a)
Econometrics Toolbox Version 3.0 (R2014a)
Embedded Coder Version 6.6 (R2014a)
Filter Design HDL Coder Version 2.9.5 (R2014a)
Financial Instruments Toolbox Version 1.3 (R2014a)
Financial Toolbox Version 5.3 (R2014a)
Fixed-Point Designer Version 4.2 (R2014a)
Fuzzy Logic Toolbox Version 2.2.19 (R2014a)
Gauges Blockset Version 2.0.9 (R2014a)
Global Optimization Toolbox Version 3.2.5 (R2014a)
HDL Coder Version 3.4 (R2014a)
HDL Verifier Version 4.4 (R2014a)
IEC Certification Kit Version 3.3 (R2014a)
Image Acquisition Toolbox Version 4.7 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
Instrument Control Toolbox Version 3.5 (R2014a)
LTE System Toolbox Version 1.1 (R2014a)
MATLAB Builder EX Version 2.5 (R2014a)
MATLAB Builder JA Version 2.3.1 (R2014a)
MATLAB Builder NE Version 4.2.1 (R2014a)
MATLAB Coder Version 2.6 (R2014a)
MATLAB Compiler Version 5.1 (R2014a)
MATLAB Report Generator Version 3.16 (R2014a)
Mapping Toolbox Version 4.0.1 (R2014a)
Model Predictive Control Toolbox Version 4.2 (R2014a)
Model-Based Calibration Toolbox Version 4.7 (R2014a)
Neural Network Toolbox Version 8.2 (R2014a)
OPC Toolbox Version 3.3.1 (R2014a)
Optimization Toolbox Version 7.0 (R2014a)
Parallel Computing Toolbox Version 6.4 (R2014a)
Partial Differential Equation Toolbox Version 1.4 (R2014a)
Phased Array System Toolbox Version 2.2 (R2014a)
Polyspace Bug Finder Version 1.1 (R2014a)
Polyspace Code Prover Version 9.1 (R2014a)
RF Toolbox Version 2.14 (R2014a)
Real-Time Windows Target Version 4.4 (R2014a)
Robust Control Toolbox Version 5.1 (R2014a)
Signal Processing Toolbox Version 6.21 (R2014a)
SimBiology Version 5.0 (R2014a)
SimDriveline Version 2.6 (R2014a)
SimElectronics Version 2.5 (R2014a)
SimEvents Version 4.3.2 (R2014a)
SimHydraulics Version 1.14 (R2014a)
SimMechanics Version 4.4 (R2014a)
SimPowerSystems Version 6.1 (R2014a)
SimRF Version 4.2 (R2014a)
Simscape Version 3.11 (R2014a)
Simulink 3D Animation Version 7.1 (R2014a)
Simulink Code Inspector Version 2.1 (R2014a)
Simulink Coder Version 8.6 (R2014a)
Simulink Control Design Version 4.0 (R2014a)
Simulink Design Optimization Version 2.5 (R2014a)
Simulink Design Verifier Version 2.6 (R2014a)
Simulink PLC Coder Version 1.7 (R2014a)
Simulink Real-Time Version 6.0 (R2014a)
Simulink Report Generator Version 3.16 (R2014a)
Simulink Verification and Validation Version 3.7 (R2014a)
Spreadsheet Link EX Version 3.2.1 (R2014a)
Stateflow Version 8.3 (R2014a)
Statistics Toolbox Version 9.0 (R2014a)
Symbolic Math Toolbox Version 6.0 (R2014a)
System Identification Toolbox Version 9.0 (R2014a)
SystemTest Version 2.6.7 (R2014a)
Trading Toolbox Version 2.1 (R2014a)
Vehicle Network Toolbox Version 2.2 (R2014a)
Wavelet Toolbox
Version 4.13 (R2014a)
tried to execute it in the windows cmd
C:\Users\TG>mcc
Error: Could not check out a Compiler license:
SIGN= keyword required but missing from the license certificate.
This is probably because the license is older than the application
You need to obtain a SIGN= version of this license from your vendor.
Feature: Compiler
Missing: SIGN1=
License path: C:\Users\TG\AppData\Roaming\MathWorks\MATLAB\R2014a_licenses;G:\M
ATLAB\R2014a\licenses\license.dat;G:\MATLAB\R2014a\licenses\license.lic;G:\MATLA
B\R2014a\licenses\license_TG-PC_271282_R2014a.lic;
FlexNet Licensing error:-114,582
For further information, refer to the FlexNet Licensing documentation,
available at "www.flexerasoftware.com"..