Skip to main content

Posts

Showing posts from August, 2023

Stretch the dynamic range of the given 8-bit grayscale image using MATL...

Why do I receive License Manager Error -9?

  When I try to launch MATLAB, I get one of the following errors:   License checkout failed. Invalid host. License Manager Error -9 Or License Manager Error -9 Your username does not match the username in the license file.     NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. License Manager Error -9 may be caused by various different reasons depending on how MATLAB was installed and activated: (Individual and Campus-Wide license only) The username in the license file does not match  (Offline Activations) The Host ID in the license file does not match (Designated Computer Only) MATLAB is already running under a different user account  Machine has a non-st

save the RGB numbers of an image inside a cell

  Hi. I would like to save the RGB numbers of an image (see RGB_value) inside a cell (see matrix) that has the same size as the image and in the same determined position.   For example: in the code below I have taken the values X=71 and Y=35 to which correspond RGB_value = [244 244 244]. I should save this RGB_value inside a 'matrix' cell at position X=71 and Y=35.   I should then apply the same argument for all other RGB_values for X=1:col_imageArray and Y=1:row_imageArray.   At the moment I was only able to determine RGB_value of one pixel but I can't insert this value inside the cell at the desired position.   imageArray = importdata("ssg.jpg"); figure() imshow(imageArray) impixelinfo row_imageArray = height(imageArray); col_imageArray = width(imageArray); matrix = {}; X = 71; Y = 35; RED = imageArray(Y,X,1); GREEN = imageArray(Y,X,2); BLUE = imageArray(Y,X,3); RGB_value = [RED, GREEN, BLUE]; matrix = [matrix,{RGB_value}];   NOTE:- Matlabsolutions.com  pr

Autosar code generation error in R2020b

  I want to migrate a model from R2017b to R2020b, when I generate the code in R2017b I don't have any issues, nevertheless the same model with the same configuration on R2020b returns the following when I try to generate code:   Component:Simulink | Category:Block warning Code generation assertion 'RTWCGVector size 10, access element at 4294967295' failed in 'b:\matlab\src\rtwcg\export\include\rtwcg\rtwcgvector.hpp:91' [ 0] 0x00007ff8e5088cdf C:\LegacyApp\Matlab20b\R2020b\bin\win64\rtwcg.dll+01346783 CG::GenericTagCategory<CG::RTWCGMatlabFcnInplaceTag,0>::GenericTagCategory<CG::RTWCGMatlabFcnInplaceTag,0>+00000431 [ 1] 0x00007ff8e50831e8 C:\LegacyApp\Matlab20b\R2020b\bin\win64\rtwcg.dll+01323496 RTWCG::DynamicMatrixUtility::~DynamicMatrixUtility+00021656 [ 2] 0x00007ff8e50841be C:\LegacyApp\Matlab20b\R2020b\bin\win64\rtwcg.dll+01327550 RTWCG::DynamicMatrixUtility::~DynamicMatrixUtility+00025710 [ 3] 0x00007ff8e508406e C:\LegacyApp\Matlab20b\R202

Exhaustion method with a condition

  Dear :   I have a set of weight number [weight1 weight2 weight3 weight4],I want to use a exhaustion method with a condition find all of them satisfied the condition:   Both of their value are 0:0.01:0.28 condition is 0.5*(weight1^2+weight2^2+weight3^2+weight4^2)==0.125 (or (weight1^2+weight2^2+weight3^2+weight4^2)==0.25 )   Following is my code :   close all clc %%wieght constraining cont=0; weight=zeros(1,4); for weight1=0:0.01:0.28 for weight2=0:0.01:0.28 for weight3=0:0.01:0.28 for weight4=0:0.01:0.28 check =(weight1^2+weight2^2+weight3^2+weight4^2); if check == 0.25 cont= cont+1; weight(cont,:)=[weight1,weight2,weight3,weight4]; end end end end end But the value only show : [0.16 0.28 0.28 0.26] [0.25 0.25 0.25 0.25] and [0.28 0.16 0.28 0.26] ,but it should have more value for sure:[0.16 0.26 0.28 0.28] [0.16 0.28 0.26 0.28]......   W

Odd and even numbers

  Hi I'm new in matlab so i need a little help to get started. How do i make a program which can distinguish from odd and even numbers? I know that i need to make a loop, it should be either if or while but i would love some suggestions on how to solve this problem.   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. You simply have to go back to the definition of odd and even. An (integer) number is even if it is divisible by 2, odd otherwise. Divisible by 2 means that the remainder when divided by 2 is 0. That is easy to test, the function to get the remainder is (or you can use ). As with many things in matlab you do not need a loop, the functions

Why am I continuously prompted to activate when I try to launch MATLAB?

  I am trying to activate and use MATLAB. Every time I start MATLAB, it prompts me to activate, even though I complete the process and it states activation is complete each time.   Why am I continuously prompted to activate when I try to launch MATLAB?   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. When launching MATLAB, you will be prompted to activate if no valid license files can be found on the license file search path. The most common reasons that MATLAB will continuously prompt you for activation are: Activating to the wrong computer login name (username) Insufficient user privileges Wrong file type Activating to an expired or invalid license f

How do I find my username in order to install or activate my license?

  When I try to activate my license, it asks for my user name. How do I find this? NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. When installing or activating an Individual license, your user name is required.  There are multiple ways to obtain your user name: Command Prompt/Terminal lmutil Utility Activation Client Command Prompt/Terminal The easiest way to get your user name is from a command prompt or terminal: Windows To get your user name via the command prompt: Locate the search field. On Windows 7 this is in the Start Menu, and on Windows 10, this is in the Taskbar Enter "cmd" into the search field and type enter At the command prompt

Why am I prompted for admin credentials every time I launch MATLAB on Windows?

  Why am I prompted to enter admin credentials every time I run MATLAB on Windows? Answer: If you are on a Windows computer that is being prompted for administrator credentials when launching MATLAB, you may not have proper permissions. This issue would typically occur in a professional environment where user accounts are being strictly managed by your IT department.   In order to run MATLAB, you will need Read/Write/Execute permissions within the MATLAB directory. You will need to reach out to your IT department to request the changes to permissions to access MATLAB. It could also be that your computer is being managed by a software such as AppLocker which can block your access to certain software.   Alternatively, after you provide the administrator credentials, if you are prompted to Activate, and after activating the behavior doesn't change, you may be activating to the wrong user account. If this is the case, please refer to the following article:   https://www.matlabsolutions

What is the MATLABWebUI process?

  When running Matlab, on linux at least, I see the process MATLABWebUI, I also see this when running in batch mode (i.e. launched matlab with -batch command lin switch). Usually I am using Simulink in case it is relevant. What is this process and what is it for? Is it required in batch mode? Answer: You can go through the following points: ‘ MATLABWebUI ’  is the process that handles the communication between the MATLAB desktop and the web-based UI (user interface) of MATLAB. The reason you see it   on Linux when you launch MATLAB from the command line is that the MATLAB desktop environment may not be launched when running in batch mode on Linux. W hen you launch MATLAB in batch mode, it does not load the  ‘ MATLABDesktop ’  process that handles the visual display of the MATLAB desktop UI. Instead, it relies on the  ‘ MATLABWebUI ’  process to handle the communication between MATLAB and any web-based UI components, such as app designer or Simulink.   for other assignment help please v

How to solve the coupled second order differential equations by using

  Hello,   I try to solve the coupled second order differential equations with ODE45. But my answer was weird.   My system is two defree of freedom system including spring and damper. So, the equations are   m1*x1'' + (c1+c2)*x1' + (k1+k2)*x1 - c2*x2' - k2*x2 = 0;   m2*x2'' + x2*x2' + k2*x2 - c2*x1' - k2*x1 = F(t);   And I changed the above equations,   x1'' = v1' = ...   x2'' = v2' = ...   Here are my code..   % mx1'' = -(k1+k2)x1 - (c1+c2)x1' + k2 x2 + c2 x2' % mx2'' = -k2 x2 - c2 x2' + k2 x1 + c2 x1' + F tspan = linspace(0,10*pi,2000); h = tspan(2) - tspan(1); xini = [0; 0; 0; 0]; [t,x] = ode45(@T2_func, tspan, xini); ------ Function ------ function dxdt = T2_func(t,x) %%Constants m1 = 1; % [kg] m2 = 1; % [kg] k1 = 10; % [N/m] k2 = 10; % [N/m] c1 = 1; % [Ns/m] c2 = 1; % [Ns/m] %%Force p = 10 * ones(1,length(t)); % [N] %%Matrix F = zeros(2, length(t)); F(2,:) = p/m2; K11 = -