Category: Matlab
Category Archives: Matlab
MATLAB Stuck on Initializing… after 2025 Update
Hello everyone,
I was using MATLAB R2025a and found a notification about an available update. I clicked the update option, and it seemed to install successfully. MATLAB restarted automatically after the update, but now it gets stuck on the "Initializing" screen and never fully launches.
OS: Windows 11
MATLAB version: R2025a (after applying the latest update)
No error message appears, it just hangs at initialization.
I’ve tried restarting my computer, but the problem persists.
Has anyone experienced this issue? Are there recommended steps to fix it (e.g., clearing cache, resetting preferences, safe mode, or rolling back the update)?
Any suggestions would be greatly appreciated.
Thank you!Hello everyone,
I was using MATLAB R2025a and found a notification about an available update. I clicked the update option, and it seemed to install successfully. MATLAB restarted automatically after the update, but now it gets stuck on the "Initializing" screen and never fully launches.
OS: Windows 11
MATLAB version: R2025a (after applying the latest update)
No error message appears, it just hangs at initialization.
I’ve tried restarting my computer, but the problem persists.
Has anyone experienced this issue? Are there recommended steps to fix it (e.g., clearing cache, resetting preferences, safe mode, or rolling back the update)?
Any suggestions would be greatly appreciated.
Thank you! Hello everyone,
I was using MATLAB R2025a and found a notification about an available update. I clicked the update option, and it seemed to install successfully. MATLAB restarted automatically after the update, but now it gets stuck on the "Initializing" screen and never fully launches.
OS: Windows 11
MATLAB version: R2025a (after applying the latest update)
No error message appears, it just hangs at initialization.
I’ve tried restarting my computer, but the problem persists.
Has anyone experienced this issue? Are there recommended steps to fix it (e.g., clearing cache, resetting preferences, safe mode, or rolling back the update)?
Any suggestions would be greatly appreciated.
Thank you! 2025 updater, installation MATLAB Answers — New Questions
Solving diffeerntial equations numerically
I need to solve a set of ODEs from [Ts, Tend]. I want the solution to be output every dT. Within that interval dT, a vaiable step method should be used, but I need the solution every dT. I can use the codes in Matlab but this output every dT (without interpolation) is what I need.
Atique MalikI need to solve a set of ODEs from [Ts, Tend]. I want the solution to be output every dT. Within that interval dT, a vaiable step method should be used, but I need the solution every dT. I can use the codes in Matlab but this output every dT (without interpolation) is what I need.
Atique Malik I need to solve a set of ODEs from [Ts, Tend]. I want the solution to be output every dT. Within that interval dT, a vaiable step method should be used, but I need the solution every dT. I can use the codes in Matlab but this output every dT (without interpolation) is what I need.
Atique Malik ode MATLAB Answers — New Questions
Why am I receiving an abnormal exit error when running “mathworks.jmaab.jc_0790” from the Model Advisor?
Hello,
I am encountering an abnormal exit error when running the check mathworks.jmaab.jc_0790 in Model Advisor.
At first, when I run Model Advisor, the issue is handled normally as a warning. However, after I add a justification, this abnormal exit error occurs for that check.
I would like to understand:
Why does the check run normally as a warning at first, but fail after adding a justification?
Is this related to the justification data itself, a corrupted Model Advisor result, or an internal issue with the check?
Does this indicate a problem in the model, the Model Advisor environment, or a tool bug?
Are there any known limitations or version-specific issues related to mathworks.jmaab.jc_0790 and justification handling?
What steps should I follow to troubleshoot and identify the root cause?
Could you please advise on how to identify the cause and resolve this issue?
Thank you.
+ Additionally, for some Check IDs, the justification appears to be applied successfully in the GUI, but the corresponding JSON file is written in an invalid or corrupted state. How can this inconsistency be diagnosed and resolved?Hello,
I am encountering an abnormal exit error when running the check mathworks.jmaab.jc_0790 in Model Advisor.
At first, when I run Model Advisor, the issue is handled normally as a warning. However, after I add a justification, this abnormal exit error occurs for that check.
I would like to understand:
Why does the check run normally as a warning at first, but fail after adding a justification?
Is this related to the justification data itself, a corrupted Model Advisor result, or an internal issue with the check?
Does this indicate a problem in the model, the Model Advisor environment, or a tool bug?
Are there any known limitations or version-specific issues related to mathworks.jmaab.jc_0790 and justification handling?
What steps should I follow to troubleshoot and identify the root cause?
Could you please advise on how to identify the cause and resolve this issue?
Thank you.
+ Additionally, for some Check IDs, the justification appears to be applied successfully in the GUI, but the corresponding JSON file is written in an invalid or corrupted state. How can this inconsistency be diagnosed and resolved? Hello,
I am encountering an abnormal exit error when running the check mathworks.jmaab.jc_0790 in Model Advisor.
At first, when I run Model Advisor, the issue is handled normally as a warning. However, after I add a justification, this abnormal exit error occurs for that check.
I would like to understand:
Why does the check run normally as a warning at first, but fail after adding a justification?
Is this related to the justification data itself, a corrupted Model Advisor result, or an internal issue with the check?
Does this indicate a problem in the model, the Model Advisor environment, or a tool bug?
Are there any known limitations or version-specific issues related to mathworks.jmaab.jc_0790 and justification handling?
What steps should I follow to troubleshoot and identify the root cause?
Could you please advise on how to identify the cause and resolve this issue?
Thank you.
+ Additionally, for some Check IDs, the justification appears to be applied successfully in the GUI, but the corresponding JSON file is written in an invalid or corrupted state. How can this inconsistency be diagnosed and resolved? model advisor MATLAB Answers — New Questions
How can I run the DREAM_Suite on mutliple data files without modifying the main code
I have this code that runs DREAM_Suite (attached) for data fitting and optimization using a Markov Chain algorithm. I can run this code on a single data file at a time, but I’d like to be able to run this optimization on multiple data files of the same kind, one after the other. Is it possible to do this through a simple modification in this "driver" script and withought having to modify/recompile the main code and associated functions in the DREAM package. (One has to download/install the DREAM package to run the attched)…
I’d also like to silence the postprocess output which is horendous as designed (muliple output figures and files, etc). I only need the file with the fit parameters (called therein ‘DREAM_ZS_output.txt’) as output from the individual data file fitting.
I am running Matlab 2025a version.I have this code that runs DREAM_Suite (attached) for data fitting and optimization using a Markov Chain algorithm. I can run this code on a single data file at a time, but I’d like to be able to run this optimization on multiple data files of the same kind, one after the other. Is it possible to do this through a simple modification in this "driver" script and withought having to modify/recompile the main code and associated functions in the DREAM package. (One has to download/install the DREAM package to run the attched)…
I’d also like to silence the postprocess output which is horendous as designed (muliple output figures and files, etc). I only need the file with the fit parameters (called therein ‘DREAM_ZS_output.txt’) as output from the individual data file fitting.
I am running Matlab 2025a version. I have this code that runs DREAM_Suite (attached) for data fitting and optimization using a Markov Chain algorithm. I can run this code on a single data file at a time, but I’d like to be able to run this optimization on multiple data files of the same kind, one after the other. Is it possible to do this through a simple modification in this "driver" script and withought having to modify/recompile the main code and associated functions in the DREAM package. (One has to download/install the DREAM package to run the attched)…
I’d also like to silence the postprocess output which is horendous as designed (muliple output figures and files, etc). I only need the file with the fit parameters (called therein ‘DREAM_ZS_output.txt’) as output from the individual data file fitting.
I am running Matlab 2025a version. multi-file run of dream suite MATLAB Answers — New Questions
In r2025a and above, how do I place the command history panel above the command panel?
I want to have the history panel above the command panel, as in the main area split in half horizontally. This used to be a simple drag and drop of the history panel above the command panel in previous versions, but it’s no longer the case and for the life of me I was unable to do it in r2025a and above. It’s possible to do just that in the left or right sides, but not in the main (middle) one. Any clues? Happy to be called retarded.
I’m on MacOS Tahoe.I want to have the history panel above the command panel, as in the main area split in half horizontally. This used to be a simple drag and drop of the history panel above the command panel in previous versions, but it’s no longer the case and for the life of me I was unable to do it in r2025a and above. It’s possible to do just that in the left or right sides, but not in the main (middle) one. Any clues? Happy to be called retarded.
I’m on MacOS Tahoe. I want to have the history panel above the command panel, as in the main area split in half horizontally. This used to be a simple drag and drop of the history panel above the command panel in previous versions, but it’s no longer the case and for the life of me I was unable to do it in r2025a and above. It’s possible to do just that in the left or right sides, but not in the main (middle) one. Any clues? Happy to be called retarded.
I’m on MacOS Tahoe. matlab gui MATLAB Answers — New Questions
Where can I find my license file and file installation key?
I need my license file and a file installation key to complete my installation. Where can I find these? I need my license file and a file installation key to complete my installation. Where can I find these? I need my license file and a file installation key to complete my installation. Where can I find these? MATLAB Answers — New Questions
Faster way to save video from uifigure and geoglobe
Hi,
I need a faster way to get video output saved from a uifigure if possible.
I’m recording a camera fly using a geoglobe into an MP4 using VideoWriter. in my understanding the figure has to be a uifigure because geoglobe requires it. Each frame is captured with getframe(fig) and written with writeVideo.
For a ~30 min sim at 5 FPS (~10,000 frames at 1280×720) takes ~4 hours.
psuedo code:
fig = uifigure(‘Position’,[100 100 1280 720], ‘Visible’,’on’);
glo = geoglobe(fig, ‘Basemap’,’satellite’);
vid = VideoWriter(out_path, ‘MPEG-4’);
vid.FrameRate = 5;
vid.Quality = 85;
open(vid);
% …
% Loop:
for fi = 1:nFrames
% … compute cam_lat, cam_lon, cam_alt, cam_heading, cam_pitch, cam_roll …
campos(glo, cam_lat, cam_lon, cam_alt);
camheading(glo, cam_heading);
campitch(glo, cam_pitch);
camroll(glo, cam_roll);
drawnow
frame = getframe(fig);
writeVideo(vid, frame.cdata);
end
close(vid);
Things I’ve already tried and didn’t work:
FPS and Quality are already set to minimum desirables.
Switched the encoder to ‘Motion JPEG AVI’ but didn’t help.
I was wondering if there is a way for the process to be parallelized, or any other way that is faster?Hi,
I need a faster way to get video output saved from a uifigure if possible.
I’m recording a camera fly using a geoglobe into an MP4 using VideoWriter. in my understanding the figure has to be a uifigure because geoglobe requires it. Each frame is captured with getframe(fig) and written with writeVideo.
For a ~30 min sim at 5 FPS (~10,000 frames at 1280×720) takes ~4 hours.
psuedo code:
fig = uifigure(‘Position’,[100 100 1280 720], ‘Visible’,’on’);
glo = geoglobe(fig, ‘Basemap’,’satellite’);
vid = VideoWriter(out_path, ‘MPEG-4’);
vid.FrameRate = 5;
vid.Quality = 85;
open(vid);
% …
% Loop:
for fi = 1:nFrames
% … compute cam_lat, cam_lon, cam_alt, cam_heading, cam_pitch, cam_roll …
campos(glo, cam_lat, cam_lon, cam_alt);
camheading(glo, cam_heading);
campitch(glo, cam_pitch);
camroll(glo, cam_roll);
drawnow
frame = getframe(fig);
writeVideo(vid, frame.cdata);
end
close(vid);
Things I’ve already tried and didn’t work:
FPS and Quality are already set to minimum desirables.
Switched the encoder to ‘Motion JPEG AVI’ but didn’t help.
I was wondering if there is a way for the process to be parallelized, or any other way that is faster? Hi,
I need a faster way to get video output saved from a uifigure if possible.
I’m recording a camera fly using a geoglobe into an MP4 using VideoWriter. in my understanding the figure has to be a uifigure because geoglobe requires it. Each frame is captured with getframe(fig) and written with writeVideo.
For a ~30 min sim at 5 FPS (~10,000 frames at 1280×720) takes ~4 hours.
psuedo code:
fig = uifigure(‘Position’,[100 100 1280 720], ‘Visible’,’on’);
glo = geoglobe(fig, ‘Basemap’,’satellite’);
vid = VideoWriter(out_path, ‘MPEG-4’);
vid.FrameRate = 5;
vid.Quality = 85;
open(vid);
% …
% Loop:
for fi = 1:nFrames
% … compute cam_lat, cam_lon, cam_alt, cam_heading, cam_pitch, cam_roll …
campos(glo, cam_lat, cam_lon, cam_alt);
camheading(glo, cam_heading);
campitch(glo, cam_pitch);
camroll(glo, cam_roll);
drawnow
frame = getframe(fig);
writeVideo(vid, frame.cdata);
end
close(vid);
Things I’ve already tried and didn’t work:
FPS and Quality are already set to minimum desirables.
Switched the encoder to ‘Motion JPEG AVI’ but didn’t help.
I was wondering if there is a way for the process to be parallelized, or any other way that is faster? uifigure, geoplot, writevideo MATLAB Answers — New Questions
What is the recommended ratio between mesh cell size and via port diameter when meshing a patch antenna geometry in MATLAB Antenna Toolbox for accurate simulation results?
I am simulating a patch antenna with a via port feed using MATLAB’s Antenna Toolbox. When meshing the antenna geometry, I need to understand the correct relationship between the mesh cell size and the via port diameter to ensure accurate simulation results.
Specifically:
– What should be the ratio between the linear mesh cell size and the via port diameter?
– Is there a recommended minimum number of mesh cells across the via diameter?
– Does this ratio affect convergence of S-parameters or radiation patterns more significantly?
Any guidance or references to best practices would be greatly appreciated.
My code is attached
Thank you!I am simulating a patch antenna with a via port feed using MATLAB’s Antenna Toolbox. When meshing the antenna geometry, I need to understand the correct relationship between the mesh cell size and the via port diameter to ensure accurate simulation results.
Specifically:
– What should be the ratio between the linear mesh cell size and the via port diameter?
– Is there a recommended minimum number of mesh cells across the via diameter?
– Does this ratio affect convergence of S-parameters or radiation patterns more significantly?
Any guidance or references to best practices would be greatly appreciated.
My code is attached
Thank you! I am simulating a patch antenna with a via port feed using MATLAB’s Antenna Toolbox. When meshing the antenna geometry, I need to understand the correct relationship between the mesh cell size and the via port diameter to ensure accurate simulation results.
Specifically:
– What should be the ratio between the linear mesh cell size and the via port diameter?
– Is there a recommended minimum number of mesh cells across the via diameter?
– Does this ratio affect convergence of S-parameters or radiation patterns more significantly?
Any guidance or references to best practices would be greatly appreciated.
My code is attached
Thank you! patch, port_via MATLAB Answers — New Questions
Gas Properties Block – Corresponding REFPROP Variable Names
Hi,
I’m trying to populate the Gas Properties block in Simscape from REFPROP (using the approach provided by MATLAB here: MATLAB Interface for REFPROP and CoolProp – File Exchange – MATLAB Central).
However, there are some complexities in the naming of the variables that make populating the block difficult. When I call REFPROP, I use these variables from REFPROP (T,P,D,S,H,CP,VIS,TCX,KKT, and BETA) for the Matlab Gas Properties block variables. ARe these REFPROP names the correct ones to be calling? The last two are particularly confusing since alpha and beta can be used for each other in various documents…very strange.
I just want to make sure i"m calling the correct REFPROP variables for each MATLAB Gas Properties block variable.
Any assistance is appreciated.Hi,
I’m trying to populate the Gas Properties block in Simscape from REFPROP (using the approach provided by MATLAB here: MATLAB Interface for REFPROP and CoolProp – File Exchange – MATLAB Central).
However, there are some complexities in the naming of the variables that make populating the block difficult. When I call REFPROP, I use these variables from REFPROP (T,P,D,S,H,CP,VIS,TCX,KKT, and BETA) for the Matlab Gas Properties block variables. ARe these REFPROP names the correct ones to be calling? The last two are particularly confusing since alpha and beta can be used for each other in various documents…very strange.
I just want to make sure i"m calling the correct REFPROP variables for each MATLAB Gas Properties block variable.
Any assistance is appreciated. Hi,
I’m trying to populate the Gas Properties block in Simscape from REFPROP (using the approach provided by MATLAB here: MATLAB Interface for REFPROP and CoolProp – File Exchange – MATLAB Central).
However, there are some complexities in the naming of the variables that make populating the block difficult. When I call REFPROP, I use these variables from REFPROP (T,P,D,S,H,CP,VIS,TCX,KKT, and BETA) for the Matlab Gas Properties block variables. ARe these REFPROP names the correct ones to be calling? The last two are particularly confusing since alpha and beta can be used for each other in various documents…very strange.
I just want to make sure i"m calling the correct REFPROP variables for each MATLAB Gas Properties block variable.
Any assistance is appreciated. gas properties, refprop MATLAB Answers — New Questions
Translating from MATLAB to Simulink
I have already written a MATLAB function and script to solve a large system of differential and alegraic equations. The original model uses ode15s to solve the stiff system of algebraic and differential equations. The equations also have several constants that are brought in to MATLAB from an Excel spreadsheet. I am now wanting to somehow incorporate this into Simulink so that I can do some parameter estimation/calibration. I have zero experience with Simulink. Is this the best method for performing parameter estimation? How do I go about "translating" my model as it currenlty exists to be run in Simulink for this purpose?I have already written a MATLAB function and script to solve a large system of differential and alegraic equations. The original model uses ode15s to solve the stiff system of algebraic and differential equations. The equations also have several constants that are brought in to MATLAB from an Excel spreadsheet. I am now wanting to somehow incorporate this into Simulink so that I can do some parameter estimation/calibration. I have zero experience with Simulink. Is this the best method for performing parameter estimation? How do I go about "translating" my model as it currenlty exists to be run in Simulink for this purpose? I have already written a MATLAB function and script to solve a large system of differential and alegraic equations. The original model uses ode15s to solve the stiff system of algebraic and differential equations. The equations also have several constants that are brought in to MATLAB from an Excel spreadsheet. I am now wanting to somehow incorporate this into Simulink so that I can do some parameter estimation/calibration. I have zero experience with Simulink. Is this the best method for performing parameter estimation? How do I go about "translating" my model as it currenlty exists to be run in Simulink for this purpose? matlab, simulink, ode15s, differential equations, adm1 MATLAB Answers — New Questions
I want to connect this blocks but I am not be able to connect this blocks so please help me with this(as shown in the figure).
Post Content Post Content multibody-translational MATLAB Answers — New Questions
USB serial communication support with Speedgoat & Simulink Real-Time (SLRT)
Can I perform UART-based serial communication with external devices connected to the USB port on my Speedgoat using Simulink Real-Time (SLRT)?Can I perform UART-based serial communication with external devices connected to the USB port on my Speedgoat using Simulink Real-Time (SLRT)? Can I perform UART-based serial communication with external devices connected to the USB port on my Speedgoat using Simulink Real-Time (SLRT)? usb, uart, serial, speedgoat, slrt MATLAB Answers — New Questions
How can I build and run a .NET Project using MATLAB Compiler SDK .NET Data API Assemblies from WSL?
I have a .NET Project on my Windows machine that uses MATLAB Compiler SDK .NET Data API assemblies, and I want to try building and running the project through Windows Subsystem for Linux (WSL) on the same machine. Is this possible? How can I do this?I have a .NET Project on my Windows machine that uses MATLAB Compiler SDK .NET Data API assemblies, and I want to try building and running the project through Windows Subsystem for Linux (WSL) on the same machine. Is this possible? How can I do this? I have a .NET Project on my Windows machine that uses MATLAB Compiler SDK .NET Data API assemblies, and I want to try building and running the project through Windows Subsystem for Linux (WSL) on the same machine. Is this possible? How can I do this? .net, data, api, wsl, windows, linux, subsystem, compiler, assemblies MATLAB Answers — New Questions
How to resolve high CPU usage from multiple “InstallMathWorks” processes on Mac when using MATLAB?
When I use MATLAB on my MacBook Pro, after some time, the system starts spawning a large number of "InstallMathWorks" processes. These processes use all my CPU cores and do not end when I quit MATLAB. The only way to stop them is by restarting the computer. How can I prevent MATLAB from creating these processes and consuming all system resources? I am using MATLAB on macOS.When I use MATLAB on my MacBook Pro, after some time, the system starts spawning a large number of "InstallMathWorks" processes. These processes use all my CPU cores and do not end when I quit MATLAB. The only way to stop them is by restarting the computer. How can I prevent MATLAB from creating these processes and consuming all system resources? I am using MATLAB on macOS. When I use MATLAB on my MacBook Pro, after some time, the system starts spawning a large number of "InstallMathWorks" processes. These processes use all my CPU cores and do not end when I quit MATLAB. The only way to stop them is by restarting the computer. How can I prevent MATLAB from creating these processes and consuming all system resources? I am using MATLAB on macOS. installmathworks MATLAB Answers — New Questions
How can I improve the consistency of results from a multi-objective optimization using the “gamultiobj” function in MATLAB?
I am using the "gamultiobj" function in MATLAB to perform multi-objective optimization. What steps can I take to improve the consistency of results from "gamultiobj"?I am using the "gamultiobj" function in MATLAB to perform multi-objective optimization. What steps can I take to improve the consistency of results from "gamultiobj"? I am using the "gamultiobj" function in MATLAB to perform multi-objective optimization. What steps can I take to improve the consistency of results from "gamultiobj"? gamultiobj MATLAB Answers — New Questions
How can I update multiple SVM classifier models in generated code without having to regenerate code in MATLAB R2025b?
I have 6 classifier models in MATLAB R2025b trained and saved as "ClassificationSVM" MATLAB objects. I generate a single DLL file that encompasses all 6 models using MATLAB Coder.
However, every time I want to retrain and update the models, I need to regenerate the DLL, which is not practical for their deployment requirements. I need to be able to update the classifier models without regenerating the DLL during runtime.
Based on the "learnerCoderConfigurer" documentation, it is possible to update models without regenerating code using the "learnerCoderConfigurer" object and its update function. However, the documented workflow only demonstrates how to update a single model and only when the generated code output is a MEX function, not a DLL.
How can I generate a single DLL of my entire software and then update the set of classifiers models within the software without regenerating the DLL? Generating separate DLLs for each model is not viable for my workflow. I have 6 classifier models in MATLAB R2025b trained and saved as "ClassificationSVM" MATLAB objects. I generate a single DLL file that encompasses all 6 models using MATLAB Coder.
However, every time I want to retrain and update the models, I need to regenerate the DLL, which is not practical for their deployment requirements. I need to be able to update the classifier models without regenerating the DLL during runtime.
Based on the "learnerCoderConfigurer" documentation, it is possible to update models without regenerating code using the "learnerCoderConfigurer" object and its update function. However, the documented workflow only demonstrates how to update a single model and only when the generated code output is a MEX function, not a DLL.
How can I generate a single DLL of my entire software and then update the set of classifiers models within the software without regenerating the DLL? Generating separate DLLs for each model is not viable for my workflow. I have 6 classifier models in MATLAB R2025b trained and saved as "ClassificationSVM" MATLAB objects. I generate a single DLL file that encompasses all 6 models using MATLAB Coder.
However, every time I want to retrain and update the models, I need to regenerate the DLL, which is not practical for their deployment requirements. I need to be able to update the classifier models without regenerating the DLL during runtime.
Based on the "learnerCoderConfigurer" documentation, it is possible to update models without regenerating code using the "learnerCoderConfigurer" object and its update function. However, the documented workflow only demonstrates how to update a single model and only when the generated code output is a MEX function, not a DLL.
How can I generate a single DLL of my entire software and then update the set of classifiers models within the software without regenerating the DLL? Generating separate DLLs for each model is not viable for my workflow. classifierupdate, parameterswapping, learnercodeconfigurer MATLAB Answers — New Questions
Are image files in my App Designer UI automatically included when compiling with MATLAB Compiler in MATLAB R2022b?
I have created an App Designer app that uses PNG and SVG images in its interface by utilizing the image components. When I compile my app using the "mcc" command in the MATLAB Command Window, will these image files be automatically included in the executable, or do I need to package them separately?I have created an App Designer app that uses PNG and SVG images in its interface by utilizing the image components. When I compile my app using the "mcc" command in the MATLAB Command Window, will these image files be automatically included in the executable, or do I need to package them separately? I have created an App Designer app that uses PNG and SVG images in its interface by utilizing the image components. When I compile my app using the "mcc" command in the MATLAB Command Window, will these image files be automatically included in the executable, or do I need to package them separately? mcc, images, compile, deployment MATLAB Answers — New Questions
Why isnt the mathworks course task not acceptig my answer?
I need to finish the control system analysis course for a class and the first coding task isnt being accepted by matlab i font understand why i need this to workI need to finish the control system analysis course for a class and the first coding task isnt being accepted by matlab i font understand why i need this to work I need to finish the control system analysis course for a class and the first coding task isnt being accepted by matlab i font understand why i need this to work self-paced course MATLAB Answers — New Questions
Color inside Confidence Interval after a fitlm
Hi
I’d like to color the area in betwen the Confidence Interval after a fitlm, like shown in the attached pic
I tried patch, area, fill, but I couln’t make any of them work.
I think the issue is that the x values are not continuous (it’s not 1:19 for example)
I have 2 continuous variables
% x = rand(1,19); y = x+[1:19];
d = load(‘d.txt’) ;
x = d(:,1) ;
y = d(:,2) ;
mdl = fitlm(x,y)
mdl.plot
thanks a lotHi
I’d like to color the area in betwen the Confidence Interval after a fitlm, like shown in the attached pic
I tried patch, area, fill, but I couln’t make any of them work.
I think the issue is that the x values are not continuous (it’s not 1:19 for example)
I have 2 continuous variables
% x = rand(1,19); y = x+[1:19];
d = load(‘d.txt’) ;
x = d(:,1) ;
y = d(:,2) ;
mdl = fitlm(x,y)
mdl.plot
thanks a lot Hi
I’d like to color the area in betwen the Confidence Interval after a fitlm, like shown in the attached pic
I tried patch, area, fill, but I couln’t make any of them work.
I think the issue is that the x values are not continuous (it’s not 1:19 for example)
I have 2 continuous variables
% x = rand(1,19); y = x+[1:19];
d = load(‘d.txt’) ;
x = d(:,1) ;
y = d(:,2) ;
mdl = fitlm(x,y)
mdl.plot
thanks a lot area color, fitlm, confidence interval MATLAB Answers — New Questions
Computing the standard errors
Dear all,
for my master’s thesis, I have to compute the standard errors of the estimated model parameters using a bootstrap approach. Trying to run the file "booti2.m", I obtain the following error:
>> booti2
Index exceeds the number of array elements. Index must not exceed 19.
Error in llfn (line 61)
sigvtr = bigthet(20);
^^^^^^^^^^^
Error in
fminunc (line 233)
f = feval(funfcn{3},x,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
booti2 (line 87)
[thetstar,fstar,exitflag] = fminunc(@llfn,bigtheto,options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Failure in initial objective function evaluation. FMINUNC cannot continue.
>>
Please note, that before I could run the original "booti.m" file with data for France successfully, while now I can’t run neither Slovenian nor French file. Thank you so much! Meancimpr.DAT file is in the folder Searching for Starting Values – Full SampleDear all,
for my master’s thesis, I have to compute the standard errors of the estimated model parameters using a bootstrap approach. Trying to run the file "booti2.m", I obtain the following error:
>> booti2
Index exceeds the number of array elements. Index must not exceed 19.
Error in llfn (line 61)
sigvtr = bigthet(20);
^^^^^^^^^^^
Error in
fminunc (line 233)
f = feval(funfcn{3},x,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
booti2 (line 87)
[thetstar,fstar,exitflag] = fminunc(@llfn,bigtheto,options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Failure in initial objective function evaluation. FMINUNC cannot continue.
>>
Please note, that before I could run the original "booti.m" file with data for France successfully, while now I can’t run neither Slovenian nor French file. Thank you so much! Meancimpr.DAT file is in the folder Searching for Starting Values – Full Sample Dear all,
for my master’s thesis, I have to compute the standard errors of the estimated model parameters using a bootstrap approach. Trying to run the file "booti2.m", I obtain the following error:
>> booti2
Index exceeds the number of array elements. Index must not exceed 19.
Error in llfn (line 61)
sigvtr = bigthet(20);
^^^^^^^^^^^
Error in
fminunc (line 233)
f = feval(funfcn{3},x,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
booti2 (line 87)
[thetstar,fstar,exitflag] = fminunc(@llfn,bigtheto,options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Failure in initial objective function evaluation. FMINUNC cannot continue.
>>
Please note, that before I could run the original "booti.m" file with data for France successfully, while now I can’t run neither Slovenian nor French file. Thank you so much! Meancimpr.DAT file is in the folder Searching for Starting Values – Full Sample standard errors MATLAB Answers — New Questions









