Category: News
Train a simple Recommendation Engine using the new Azure AI Studio
Hi, everyone! I am Paschal Alaemezie, a Gold Microsoft Learn Student Ambassador. I am a student at the Federal University of Technology, Owerri (FUTO). I am interested in Artificial Intelligence, Software Engineering, and Emerging technologies, and how to apply the knowledge from these technologies in writing and building cool solutions to the challenges we face. Feel free to connect with me on LinkedIn and GitHub or follow me on X (Twitter).
In my previous article, I wrote about Recommendation Engines and gave a walkthrough on how to train a simple recommendation engine using the Azure Machine Learning Designer via the Azure portal. In this article, I will give a walkthrough on how to replicate this training using Azure Machine Learning Designer via the new Azure AI Studio.
The new Azure AI Studio is a comprehensive platform designed to facilitate the development, management, and deployment of AI applications. It offers a user-friendly interface with drag-and-drop capabilities for model creation, alongside advanced features for model management and scalability. The platform supports automated machine learning to optimize model selection and tuning. It is suitable for creating custom AI solutions, including chatbots and other AI-driven applications, with a focus on collaboration, efficiency, and responsible AI practices. Azure AI Studio is available in public preview, providing a glimpse into the future of AI development tools.
An Azure subscription is required to carry out the activities in this article. If you are a student, you can use your university or school email to sign up for a free Azure for Students account and start building on the Azure cloud with a free $100 Azure credit.
Activity 1: Create a New Training Pipeline
Step 1: Setting up your Azure AI Studio workspace
Open your web browser and go to ai.azure.com to open the new Azure AI Studio
Go to Build on the Azure AI Studio and click on it to open the Build environment. Then click on + New project button to open the Create a project environment.
Step 2: Creating your project
For the Project details section:
At Hub name, key in your preferred name for your project’s hub in the input box provided.
At Subscription, select your existing subscription from the drop-down menu.
Select your Resource group. If you have any existing resource group, select it from the drop-down menu. Otherwise, click on Create new to create a new resource group, and click OK after that.
At Location, select your location from the drop-down menu. Then, click on the Next button at the bottom of the screen to go to the Review and finish.
At the Review and finish section, click on Create a project button at the bottom of the screen to provision your workspace on Azure AI Studio.
Your provisioned workspace will display the window below. Go to the All Azure AI at the upper right of the screen and select the Azure Machine Learning Studio from the drop-down menu.
In the Azure Machine Learning studio, select Designer from the navigation pane on the left-hand side. This will open the Designer environment where you can select a new pipeline if there is no existing pipeline.
In the Designer environment, select the Classic prebuilt component. Then click on the Create a new pipeline using classic prebuilt components. This will open a visual pipeline authoring editor.
Step 3: Add Sample Datasets
In the left navigation pane of the Authoring editor, click the Asset library and go to the Component section. Under Component, click on Sample data.
In the Sample data, scroll down to the Movie Ratings, and IMDB Movie Titles. Drag and drop the selected datasets onto the canvas.
Step 4: Join the two datasets on Movie ID
Close the Sample data drop-down menu. From the Data Transformation section in the left navigation, select the Join Data prebuilt module, and drag and drop the selected module onto the canvas
Connect the output of the Movie Ratings module to the first input of the Join Data module.
Connect the output of the IMDB Movie Titles module to the second input of the Join Data module.
Select the Join Data module. Click the navigation button at the upper right of the canvas to open the Join Data module window.
Select the Edit column link to open the Join key columns for the left dataset editor. Select the MovieId column in the Enter column name field and click Save.
Select the Edit column link to open the Join key columns for the right dataset editor. Select the Movie ID column in the Enter column name field and click Save. Then, close the Join Data window.
Step 5: Select Columns UserId, Movie Name, and Rating using a Python script
From the Python Language section in the left navigation, select the Execute Python Script prebuilt module. Drag and drop the selected module onto the canvas. Then, connect the Join Data output to the input of the Execute Python Script module.
Select Edit code to open the Python script editor, clear the existing code and then enter the following lines of code to select the UserId, Movie Name, and Rating columns from the joined dataset. Ensure best practice by indenting only the second and third lines of your code.
Step 6: Remove duplicate rows with the same Movie Name and UserId
From the Data Transformation section in the left navigation pane, select the Remove Duplicate Rows prebuilt module from the drop-down menu, and drag and drop the selected module onto the canvas.
Connect the first output of the Execute Python Script to the input of the Remove Duplicate Rows module.
Select the Edit column link to open the Select column editor. Click the navigation button at the upper right of the canvas to open the Remove Duplicate Rows module window.
Enter the following list of columns to be included in the output dataset: Movie Name, UserId. Then, click Save.
Step 7: Split the dataset into a training set (0.5) and a test set (0.5)
From the Data Transformation section in the left navigation select the Split Data prebuilt module and drag and drop the selected module onto the canvas, then connect the Dataset to the Split Data module.
Click the navigation button at the upper right of the canvas to open the Split Data module window. Ensure that the Fraction of rows in the first output dataset: 0.5
Step 8: Initialize Recommendation Module
From the Recommendation section in the left navigation pane, select the Train SVD Recommender prebuilt module and drag and drop the selected module onto the canvas. Then, connect the first output of the Split Data module to the input of the Train SVD Recommender module.
Click the navigation button at the upper right of the canvas to open the Train SVD Recommender module window. Set Number of factors: 200. This option specifies the number of factors to use with the recommender.
Number of recommendation algorithm iterations: 30. This number indicates how many times the algorithm should process the input data. The default value is 30.
For Learning rate: 0.001. The learning rate defines the step size for learning.
Step 9: Select Columns UserId, Movie Name from the test set
From the Data Transformation section in the left navigation pane, select the Select Columns in Dataset prebuilt module and drag and drop the selected module onto the canvas. Then, connect the Split Data second output to the input of the Select columns in Dataset module.
Click the navigation button at the upper right of the canvas to open the Select Columns in Dataset module window. Select the Edit column link to open the Select columns editor.
Enter the following list of columns to be included in the output dataset: UserId, Movie Name and Click Save.
Step 10: Configure the Score SVD Recommender
From the Recommendation section in the left navigation pane, select the Score SVD Recommender prebuilt module and drag and drop the selected module onto the canvas
Connect the output of the Train SVD Recommender module to the first input of the Score SVD Recommender module, which is the Trained SVD recommendation input.
Connect the output of the Select Columns in Dataset module to the second input of the Score SVD Recommender module, which is the Dataset to score input.
Open the Score SVD Recommender module on the canvas by clicking on the navigation button at the upper right of the canvas. Set the Recommender prediction kind: Rating Prediction. For this option, no other parameters are required.
Step 11: Setup Evaluate Recommender Module
From the Recommendation section in the left navigation pane, select the Evaluate Recommender prebuilt module and drag and drop the selected module onto the canvas.
Connect the Score SVD Recommender module to the second input of the Evaluate Recommender module, which is the Scored dataset input.
Connect the second output of the Split Data module (train set) to the first input of the Evaluate Recommender module, which is the Test dataset input.
Activity 2: Submit Training Pipeline
In the Authoring editor, ensure that you have AutoSave enabled. Then click on Configure & Submit at the upper right-hand side of your screen.
For the Set up pipeline job window: In the Basics section, click the Create new button under the Experiment name. Type your new experiment name and click the Next button at the bottom of the screen.
In the Inputs & outputs section, click the Next button at the bottom of the screen.
In the Runtime settings section: skip the Default compute. Go to the select compute type and select Compute instance from the drop-down menu. Under the Select Azure ML compute instance, click on Create Azure ML compute instance. The Create compute instance will open in another environment.
In the Create compute instance window, type in your compute name under the Compute name tab. Then, select the CPU button under the Virtual machine type.
While authoring this article, I had to select my virtual machine first to enable the Compute name tab. You may or may not encounter this issue. I selected the Standard_D2_v2 virtual machine for this training. After that, click the Review + Create button at the end of the screen, to take you back to the Runtime settings window.
Back to the Runtime settings window. At the Select Azure ML compute instance, Select the compute instance that you have created. Here, I selected the movie instance from the drop-down menu. Note that your newly created compute instance will take some time to be provisioned and appear in your drop-down menu. Go to the Advanced settings and ensure that the Continue on step failure box is checked. Then, click the Review + Submit button at the end of the screen.
At the Review + Submit section, ensure that your provided details are correct. Then, click the Submit button at the end of the screen.
Activity 3: Visualize Scoring Results
Step 1: When your pipeline is submitted and your model training is completed, at the left navigation pane, go to Jobs under Asset and click on the name of your completed pipeline.
Step 2: Visualize the Scored dataset
Go to the Score SVD Recommender module on the canvas and right-click on it. Select Preview data and click on Scored dataset.
Observe the predicted values under the column Rating.
Step 3: Visualize the Evaluation Results
Go to the Evaluate Recommender module on the canvas and right-click on it. Select Preview data and click on Metric.
Evaluate the model performance by reviewing the various evaluation metrics, such as Mean Absolute Error, Root Mean Squared Error, etc.
Next step
Congratulations, on making it this far. Stay tuned for my next blog on the amazing solutions you can build using the Azure AI Studio.
For enthusiasts and professionals alike, you can leverage these resources to stay informed and inspired as you embark on your AI journey:
Microsoft AI Discord Community is a dynamic space to discuss and share AI-related insights.
Global AI Community offers a platform to connect with peers worldwide.
Azure Samples provides practical code examples to enhance your projects.
Microsoft AI Show delivers the latest updates in AI technology.
ML for Begineers Open Source Course and Curricula
Microsoft Tech Community – Latest Blogs –Read More
Find data from txt file
Hi all,
I try to find a data from txt file. In a row (i don’t known which row), there is an information like "Dt: 0.0001". I want to find this row and store 0.0001 as a variable. How can i do that?
Thanks for helpHi all,
I try to find a data from txt file. In a row (i don’t known which row), there is an information like "Dt: 0.0001". I want to find this row and store 0.0001 as a variable. How can i do that?
Thanks for help Hi all,
I try to find a data from txt file. In a row (i don’t known which row), there is an information like "Dt: 0.0001". I want to find this row and store 0.0001 as a variable. How can i do that?
Thanks for help finder, txt, data MATLAB Answers — New Questions
Display Text Without Formatting
The following string displays in the command window formatted as a hyperlink. How do I display the entire contents of str without formatting?
>> str = ‘<a href="test">TEST</a>’
str =
TESTThe following string displays in the command window formatted as a hyperlink. How do I display the entire contents of str without formatting?
>> str = ‘<a href="test">TEST</a>’
str =
TEST The following string displays in the command window formatted as a hyperlink. How do I display the entire contents of str without formatting?
>> str = ‘<a href="test">TEST</a>’
str =
TEST display, hyperlink MATLAB Answers — New Questions
How can I find the troughs of something without using the function findpeaks?
%This function is meant to help me find the troughs of the flow plot but I keep getting values that almost work but don’t work, I was told by a classmate that to find the troughs I need to find the beaks then work backwards
function [troughs] = findTroughs(flowData)
flow = flowData(:,2);
t = flowData(:,1);
troughs = [];
for i = 3:length(flow)-2
if flow(i) < flow(i-1) && flow(i) < flow(i-2) && flow(i) < flow(i+1) && flow(i) < flow(i+2)
isAbsolute = true;
for j = (i-10):(i+10)
if j>=1 && j<=length(flow) && flow(i)>flow(j)
isAbsolute = false;
break
end
end
if isAbsolute && ~any(troughs == i) % Check if trough index already exists
troughs = [troughs, i];
end
end
end
end%This function is meant to help me find the troughs of the flow plot but I keep getting values that almost work but don’t work, I was told by a classmate that to find the troughs I need to find the beaks then work backwards
function [troughs] = findTroughs(flowData)
flow = flowData(:,2);
t = flowData(:,1);
troughs = [];
for i = 3:length(flow)-2
if flow(i) < flow(i-1) && flow(i) < flow(i-2) && flow(i) < flow(i+1) && flow(i) < flow(i+2)
isAbsolute = true;
for j = (i-10):(i+10)
if j>=1 && j<=length(flow) && flow(i)>flow(j)
isAbsolute = false;
break
end
end
if isAbsolute && ~any(troughs == i) % Check if trough index already exists
troughs = [troughs, i];
end
end
end
end %This function is meant to help me find the troughs of the flow plot but I keep getting values that almost work but don’t work, I was told by a classmate that to find the troughs I need to find the beaks then work backwards
function [troughs] = findTroughs(flowData)
flow = flowData(:,2);
t = flowData(:,1);
troughs = [];
for i = 3:length(flow)-2
if flow(i) < flow(i-1) && flow(i) < flow(i-2) && flow(i) < flow(i+1) && flow(i) < flow(i+2)
isAbsolute = true;
for j = (i-10):(i+10)
if j>=1 && j<=length(flow) && flow(i)>flow(j)
isAbsolute = false;
break
end
end
if isAbsolute && ~any(troughs == i) % Check if trough index already exists
troughs = [troughs, i];
end
end
end
end plotting, subplot MATLAB Answers — New Questions
Make Parametric Curves Plot Smoother
I have an application where I am hoping to plot a region inside a parametric curve, and I need the plot to be fairly close up to the curve, however this seems to have a staircasing effect on the curve. I have plotted an example below which shows the staircasing, (I have increased the line width to help the problem be visible). Is there a way to smooth this out? Refining the discretization doesn’t seem to help. I understand that the curve is discrete and won’t look perfect, but any suggestions are welcome!
t = linspace(0,2*pi,100);
x =cos(t) + 0.65 * cos(2 * t) -0.65; y = 1.5 * sin(t);
plot(x,y,’Linewidth’,1.5)I have an application where I am hoping to plot a region inside a parametric curve, and I need the plot to be fairly close up to the curve, however this seems to have a staircasing effect on the curve. I have plotted an example below which shows the staircasing, (I have increased the line width to help the problem be visible). Is there a way to smooth this out? Refining the discretization doesn’t seem to help. I understand that the curve is discrete and won’t look perfect, but any suggestions are welcome!
t = linspace(0,2*pi,100);
x =cos(t) + 0.65 * cos(2 * t) -0.65; y = 1.5 * sin(t);
plot(x,y,’Linewidth’,1.5) I have an application where I am hoping to plot a region inside a parametric curve, and I need the plot to be fairly close up to the curve, however this seems to have a staircasing effect on the curve. I have plotted an example below which shows the staircasing, (I have increased the line width to help the problem be visible). Is there a way to smooth this out? Refining the discretization doesn’t seem to help. I understand that the curve is discrete and won’t look perfect, but any suggestions are welcome!
t = linspace(0,2*pi,100);
x =cos(t) + 0.65 * cos(2 * t) -0.65; y = 1.5 * sin(t);
plot(x,y,’Linewidth’,1.5) plotting, parametric curve MATLAB Answers — New Questions
“Manifest parsing has failed” while running teams message extension locally.
Hi,
I wanted to add “samplePrompts” property to my manifest json which requires manifest version v1.17. I’ve changed the schema and version from v1.16 to v1.17. Also removed “packageName” property from manifest json file as v1.17 is not supported the “packageName” property. After that, I tried to run the message extension locally however I am getting below error.
When I clicked to “Copy error details to clipboard”, it give me “packageName | Property “packageName” has not been defined and the schema does not allow additional properties.” this error and unable to add message extension app.
Please let me know how can I fix it.
Hi,I wanted to add “samplePrompts” property to my manifest json which requires manifest version v1.17. I’ve changed the schema and version from v1.16 to v1.17. Also removed “packageName” property from manifest json file as v1.17 is not supported the “packageName” property. After that, I tried to run the message extension locally however I am getting below error. When I clicked to “Copy error details to clipboard”, it give me “packageName | Property “packageName” has not been defined and the schema does not allow additional properties.” this error and unable to add message extension app. Please let me know how can I fix it. Read More
big problem with matlab and simulink
the matlab and the simulink is not working, it gives to me this:Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabmpm
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabprojectviewslabels
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabtestframeworkmockcoremasked
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabtestframeworkunittestcoremasked
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabwebcam
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkcomponents
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkcomponentsimages
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaeditor
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaeditorui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimapping
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimappingcallbacks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimappingutil
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauipreferencesmapper
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstrip
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstriphelp
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripopen
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripopenstreaming
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripreport
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripsession
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolcontrol
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlanalysis
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrldesign
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlguis
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlmodels
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlobsolete
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlplots
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlutil
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxdashboardserver_adapters_ml
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxhdlcoderhdlcommonmapping
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxhdlcoderhdlcommonmappingui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxparallelweb
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcmlinkviewcore
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcodeinstrumcodeinstrum
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengine
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibenginenumerics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineoptim
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineoptions
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibestimation
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibrequirements
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollib
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibexplorer
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibgeneral
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibgraphics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibmodelpack
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrolliboperating_points
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedtrackingtrackinglib
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedtrackingtrackinglibblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinktestcoreinjectorinjector
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxslcoverage
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolicgraphics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolicsymbolic
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolictasksthe matlab and the simulink is not working, it gives to me this:Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabmpm
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabprojectviewslabels
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabtestframeworkmockcoremasked
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabtestframeworkunittestcoremasked
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabwebcam
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkcomponents
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkcomponentsimages
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaeditor
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaeditorui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimapping
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimappingcallbacks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimappingutil
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauipreferencesmapper
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstrip
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstriphelp
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripopen
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripopenstreaming
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripreport
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripsession
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolcontrol
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlanalysis
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrldesign
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlguis
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlmodels
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlobsolete
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlplots
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlutil
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxdashboardserver_adapters_ml
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxhdlcoderhdlcommonmapping
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxhdlcoderhdlcommonmappingui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxparallelweb
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcmlinkviewcore
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcodeinstrumcodeinstrum
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengine
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibenginenumerics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineoptim
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineoptions
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibestimation
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibrequirements
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollib
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibexplorer
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibgeneral
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibgraphics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibmodelpack
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrolliboperating_points
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedtrackingtrackinglib
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedtrackingtrackinglibblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinktestcoreinjectorinjector
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxslcoverage
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolicgraphics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolicsymbolic
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolictasks the matlab and the simulink is not working, it gives to me this:Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabmpm
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabprojectviewslabels
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabtestframeworkmockcoremasked
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabtestframeworkunittestcoremasked
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxmatlabwebcam
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkcomponents
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkcomponentsimages
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaeditor
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaeditorui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstaui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimapping
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimappingcallbacks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauimappingutil
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauipreferencesmapper
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstrip
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstriphelp
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripopen
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripopenstreaming
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripreport
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinkstauitoolstripsession
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolcontrol
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlanalysis
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrldesign
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlguis
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlmodels
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlobsolete
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlplots
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxcontrolctrlutil
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxdashboardserver_adapters_ml
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxhdlcoderhdlcommonmapping
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxhdlcoderhdlcommonmappingui
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxparallelweb
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcmlinkviewcore
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcodeinstrumcodeinstrum
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengine
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibenginenumerics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineoptim
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibengineoptions
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibestimation
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedcontrollibrequirements
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollib
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibexplorer
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibgeneral
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibgraphics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrollibmodelpack
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedslcontrolliboperating_points
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedtrackingtrackinglib
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsharedtrackingtrackinglibblocks
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsimulinktestcoreinjectorinjector
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxslcoverage
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolicgraphics
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolicsymbolic
Warning: Name is nonexistent or not a directory: C:Program FilesMATLABR2024atoolboxsymbolictasks noneexist, installation MATLAB Answers — New Questions
Microsoft Edge only opens PDF. Can’t default to any other program.
I have Adobe Acrobat Pro installed. For some reason, edge is the default program. I have tried to change this and have had zero success. When I select any other program but edge, it will default back to edge.
On the side, it says that an error has occurred and it defaults back to edge. Can someone please help me it’s infuriating. Never had this issue before.
I have Adobe Acrobat Pro installed. For some reason, edge is the default program. I have tried to change this and have had zero success. When I select any other program but edge, it will default back to edge. On the side, it says that an error has occurred and it defaults back to edge. Can someone please help me it’s infuriating. Never had this issue before. Read More
Recommendation – Microsoft 365 authorisation concepts – Part 2
[New Blog Post]
*PART 2!*
I have put a new article online. This article is divided into two parts.
In the second part, we take a closer look at the configuration of #AdministrativeUnits and #ExchangeOnline, as well as a possible training concept.
https://www.msb365.blog/?p=5503
#MVPbuzz #M365 #Microsoft365 #CommunityRocks #EntraID
[New Blog Post]
*PART 2!*
I have put a new article online. This article is divided into two parts.
In the second part, we take a closer look at the configuration of #AdministrativeUnits and #ExchangeOnline, as well as a possible training concept.
https://www.msb365.blog/?p=5503
#MVPbuzz #M365 #Microsoft365 #CommunityRocks #EntraID
Sharing temporary data under %appData% of MSIX app with MSI application
Dear Members,
My App is .Net Framework 4.8.1 based WPF app.
Packaged in MSIX installer to distribute as Store App.
I have a use case to share temporary file data created by WPF packaged app with other desktop application. This is temporary data which will be created while executing a feature and will be deleted after completion of feature execution.
When data is kept under %appdata%/ LocalCache, it is accessible by other desktop application.
Does this kind of sharing violates any Appx principles or rules of Store App?
Thank you.
Dear Members, My App is .Net Framework 4.8.1 based WPF app.Packaged in MSIX installer to distribute as Store App. I have a use case to share temporary file data created by WPF packaged app with other desktop application. This is temporary data which will be created while executing a feature and will be deleted after completion of feature execution. When data is kept under %appdata%/ LocalCache, it is accessible by other desktop application.Does this kind of sharing violates any Appx principles or rules of Store App? Thank you. Read More
Input Argument Validation Issue
I’m having an issue with input argument validation using the arguments block. Here’s a simplified version of my code
function plot(obj, diagramType)
arguments
obj (1,:)
diagramType (1,:) {mustBeMember(diagramType,{"Flow Rate", "Velocity"})} = "Flow Rate";
end
end
I’m trying to override the plot command for a class of objects, but when I call this plot function, I get the following error:
Error using FundamentalDiagram/plot (line 17)
Invalid default value for argument ‘diagramType’. Value must be members of the required set.
This is confusing because it seems like the default value I chose – "Flow Rate" is clearly in the required set. What could this issue be?I’m having an issue with input argument validation using the arguments block. Here’s a simplified version of my code
function plot(obj, diagramType)
arguments
obj (1,:)
diagramType (1,:) {mustBeMember(diagramType,{"Flow Rate", "Velocity"})} = "Flow Rate";
end
end
I’m trying to override the plot command for a class of objects, but when I call this plot function, I get the following error:
Error using FundamentalDiagram/plot (line 17)
Invalid default value for argument ‘diagramType’. Value must be members of the required set.
This is confusing because it seems like the default value I chose – "Flow Rate" is clearly in the required set. What could this issue be? I’m having an issue with input argument validation using the arguments block. Here’s a simplified version of my code
function plot(obj, diagramType)
arguments
obj (1,:)
diagramType (1,:) {mustBeMember(diagramType,{"Flow Rate", "Velocity"})} = "Flow Rate";
end
end
I’m trying to override the plot command for a class of objects, but when I call this plot function, I get the following error:
Error using FundamentalDiagram/plot (line 17)
Invalid default value for argument ‘diagramType’. Value must be members of the required set.
This is confusing because it seems like the default value I chose – "Flow Rate" is clearly in the required set. What could this issue be? function, arguments, validation MATLAB Answers — New Questions
Why is my figure different when I open it in the Figure Window, compared to that displayed in the results pane of Live Script?
Hi,
I set up the plot as I wanted it in Live Script, but when I press the "Open in Figure Window" arrow for said figure it opens, but some ylines are missing. How do I resolve this so I can save the figure as a .fig file?
Thanks! 🙂
Screenshots and code included below:
Code and Figure as seen in Live Script:
Figures side by side:Hi,
I set up the plot as I wanted it in Live Script, but when I press the "Open in Figure Window" arrow for said figure it opens, but some ylines are missing. How do I resolve this so I can save the figure as a .fig file?
Thanks! 🙂
Screenshots and code included below:
Code and Figure as seen in Live Script:
Figures side by side: Hi,
I set up the plot as I wanted it in Live Script, but when I press the "Open in Figure Window" arrow for said figure it opens, but some ylines are missing. How do I resolve this so I can save the figure as a .fig file?
Thanks! 🙂
Screenshots and code included below:
Code and Figure as seen in Live Script:
Figures side by side: yyaxis, plot, figure window, yline, r2023b, academic use MATLAB Answers — New Questions
Merging 2 plots that are already saved as .fig files
I have a script that reads data from an s2p file with data = read(rddata.data,name) where ‘name is the name of the s2p file. I am then setting certain parameters for the plot like axis, legend, titles, and save the file as .fig file which i can open on its own. Is there a way to take 2 such files and put them on the same graph easily with just the info from the .fig file directly? I tried doing the following:
% Load saved .fig files
fig1 = openfig(‘File1.fig’);
fig2 = openfig(‘File2.fig’);
% Create new figure with tiled layout
figure(100);
tiledlayout(1,2);
%title(‘Figure 1’);
% Plot axes contents from figure 1
nexttile;
ax1 = copyobj(fig1.Children, gcf);
%copyobj(axes1, gca);
% Plot axes contents from figure 2
nexttile;
ax2 = copyobj(fig2.Children, gcf);
saveas(gcf, ‘combined_plot.png’);
when I run this I get a weird overlay of just one of the plots and behind the one plot there seems to be 2 blank graph windows that are being blocked by the one graph showing.I have a script that reads data from an s2p file with data = read(rddata.data,name) where ‘name is the name of the s2p file. I am then setting certain parameters for the plot like axis, legend, titles, and save the file as .fig file which i can open on its own. Is there a way to take 2 such files and put them on the same graph easily with just the info from the .fig file directly? I tried doing the following:
% Load saved .fig files
fig1 = openfig(‘File1.fig’);
fig2 = openfig(‘File2.fig’);
% Create new figure with tiled layout
figure(100);
tiledlayout(1,2);
%title(‘Figure 1’);
% Plot axes contents from figure 1
nexttile;
ax1 = copyobj(fig1.Children, gcf);
%copyobj(axes1, gca);
% Plot axes contents from figure 2
nexttile;
ax2 = copyobj(fig2.Children, gcf);
saveas(gcf, ‘combined_plot.png’);
when I run this I get a weird overlay of just one of the plots and behind the one plot there seems to be 2 blank graph windows that are being blocked by the one graph showing. I have a script that reads data from an s2p file with data = read(rddata.data,name) where ‘name is the name of the s2p file. I am then setting certain parameters for the plot like axis, legend, titles, and save the file as .fig file which i can open on its own. Is there a way to take 2 such files and put them on the same graph easily with just the info from the .fig file directly? I tried doing the following:
% Load saved .fig files
fig1 = openfig(‘File1.fig’);
fig2 = openfig(‘File2.fig’);
% Create new figure with tiled layout
figure(100);
tiledlayout(1,2);
%title(‘Figure 1’);
% Plot axes contents from figure 1
nexttile;
ax1 = copyobj(fig1.Children, gcf);
%copyobj(axes1, gca);
% Plot axes contents from figure 2
nexttile;
ax2 = copyobj(fig2.Children, gcf);
saveas(gcf, ‘combined_plot.png’);
when I run this I get a weird overlay of just one of the plots and behind the one plot there seems to be 2 blank graph windows that are being blocked by the one graph showing. ploting, .fig files MATLAB Answers — New Questions
Question about moving SSD to new build
I have a 2 TB Samsung SSD from my old pc that died and I want to add to new pc with Windows 10 currently the operating system. The question I have is would it cause any issues to just install it and then format the thing? Most of what is on it is also on new I just want the extra storage.
I have a 2 TB Samsung SSD from my old pc that died and I want to add to new pc with Windows 10 currently the operating system. The question I have is would it cause any issues to just install it and then format the thing? Most of what is on it is also on new I just want the extra storage. Read More
Form to allow user to colour fill cells of their choice
I would like to include a feature in my spreadsheet. In cell B2 I have a list form, showing the options “O.P”, “C.P” and “P.S.P”. Underneath in cells B3 to E3 are two rows of the following options “Socials”, “Alert”, “Going” and “Subscription”. Photo below for example.
I have already formatted each of the cells from B3 to E4 to display their respective text, dependent on the value in B2. So when either of the options are selected in the form in B2, the cells underneath will display the same word text. For example, the formula I have used in cell B4 is this “=IF(B2=”O.P”,”Socials”,IF(B2=”C.P”,”Socials”,IF(B2=”P.S.P”,”Socials”,””))) “.
Everything works fine when switching between the forms. What I need to include is a feature where the user can choose any of the options in B2 and colour fill in the cells underneath as they need.
Right now when I do this, the colour filled cells stay the same across all of the options in B2. What I need is for the colour filled cells to stay the same, respective to the option in B2.
Ultimately, if the user is on the “O.P” option in B2, and they colour fill cells B3 and D3, then go to the “C.P” option in B2 and colour fill cells C3 and D3, when they go back to the “O.P” option, cells B3 and D3 will still be colour filled, and when they go back to the “C.P” option, cells C3 and D3 will still be colour filled.
How would I be able to include this feature in my spreadsheet please?
I would like to include a feature in my spreadsheet. In cell B2 I have a list form, showing the options “O.P”, “C.P” and “P.S.P”. Underneath in cells B3 to E3 are two rows of the following options “Socials”, “Alert”, “Going” and “Subscription”. Photo below for example. I have already formatted each of the cells from B3 to E4 to display their respective text, dependent on the value in B2. So when either of the options are selected in the form in B2, the cells underneath will display the same word text. For example, the formula I have used in cell B4 is this “=IF(B2=”O.P”,”Socials”,IF(B2=”C.P”,”Socials”,IF(B2=”P.S.P”,”Socials”,””))) “. Everything works fine when switching between the forms. What I need to include is a feature where the user can choose any of the options in B2 and colour fill in the cells underneath as they need. Right now when I do this, the colour filled cells stay the same across all of the options in B2. What I need is for the colour filled cells to stay the same, respective to the option in B2. Ultimately, if the user is on the “O.P” option in B2, and they colour fill cells B3 and D3, then go to the “C.P” option in B2 and colour fill cells C3 and D3, when they go back to the “O.P” option, cells B3 and D3 will still be colour filled, and when they go back to the “C.P” option, cells C3 and D3 will still be colour filled. How would I be able to include this feature in my spreadsheet please? Read More
How to have number as marker symbol in plot
I’m trying to have a plot with number form 1 to 150 as a marker symbol.I have this but it doesn’t work.please help
if true
% code
mark=zeros(1,class_length);
for i=1:class_length
mark(:,i)=i;
ma=num2str(mark);
malength=length(ma);
end
if mode==6 && colorflag==0
box on;
hold on;
for i=1:class_length
for p=1:malength
if classlabel(i)==p
plot(x(i),y(i),’Marker’,mo(p),’MarkerSize’,fontsize,’Color’,colors(7));
end
end
end
hold off;
endI’m trying to have a plot with number form 1 to 150 as a marker symbol.I have this but it doesn’t work.please help
if true
% code
mark=zeros(1,class_length);
for i=1:class_length
mark(:,i)=i;
ma=num2str(mark);
malength=length(ma);
end
if mode==6 && colorflag==0
box on;
hold on;
for i=1:class_length
for p=1:malength
if classlabel(i)==p
plot(x(i),y(i),’Marker’,mo(p),’MarkerSize’,fontsize,’Color’,colors(7));
end
end
end
hold off;
end I’m trying to have a plot with number form 1 to 150 as a marker symbol.I have this but it doesn’t work.please help
if true
% code
mark=zeros(1,class_length);
for i=1:class_length
mark(:,i)=i;
ma=num2str(mark);
malength=length(ma);
end
if mode==6 && colorflag==0
box on;
hold on;
for i=1:class_length
for p=1:malength
if classlabel(i)==p
plot(x(i),y(i),’Marker’,mo(p),’MarkerSize’,fontsize,’Color’,colors(7));
end
end
end
hold off;
end plot, marker symbol MATLAB Answers — New Questions
Matlab does not find Java Runtime Environment (Mac Silicon)
Hello, I’m trying to install matlab in my computer (Macbook pro, M2). It requires a java runtime environment (JRE). It give as an option the one from Amazon, but I have a JRE installed directly from Java’s website. After reading this article on how to change the JRE path from the command window, I run the following, from the hardrive location:
<path/to/matlab_jenv> <path/to/JRE>
I’m copy-pasting the JRE path from the java applet. Anyway, the error I’m getting is this:
"Unable to validate Java path: <path/to/JRE>".
Can anyone help? Thank you!!Hello, I’m trying to install matlab in my computer (Macbook pro, M2). It requires a java runtime environment (JRE). It give as an option the one from Amazon, but I have a JRE installed directly from Java’s website. After reading this article on how to change the JRE path from the command window, I run the following, from the hardrive location:
<path/to/matlab_jenv> <path/to/JRE>
I’m copy-pasting the JRE path from the java applet. Anyway, the error I’m getting is this:
"Unable to validate Java path: <path/to/JRE>".
Can anyone help? Thank you!! Hello, I’m trying to install matlab in my computer (Macbook pro, M2). It requires a java runtime environment (JRE). It give as an option the one from Amazon, but I have a JRE installed directly from Java’s website. After reading this article on how to change the JRE path from the command window, I run the following, from the hardrive location:
<path/to/matlab_jenv> <path/to/JRE>
I’m copy-pasting the JRE path from the java applet. Anyway, the error I’m getting is this:
"Unable to validate Java path: <path/to/JRE>".
Can anyone help? Thank you!! java, jre, installation MATLAB Answers — New Questions
Background transparency is not supported for surf plots
Whereas the
close all
[X,Y] = meshgrid(1:0.5:10,1:20);
x=[0 10];y=2*x;
hf1=figure;plot(x,y);set(gca, ‘color’, ‘none’)
exportgraphics(hf1,’test2d.pdf’,’BackgroundColor’,’none’)
Z = sin(X) + cos(Y);hf2=figure;surf(X,Y,Z);
set(gca, ‘color’, ‘none’);
exportgraphics(hf2,’test3d.pdf’,’BackgroundColor’,’none’);
hf3=figure;[X,Y] = meshgrid(-8:.5:8);R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;C = X.*Y;mesh(X,Y,Z,C)
set(gca, ‘color’, ‘none’);
exportgraphics(hf3,’test3d.pdf’,’BackgroundColor’,’none’);
I do get indeed transparent figures, but wih the folloing arning
Warning: Background transparency is not supported; using white instead
However, once I insert the pdf in my latex file, the background is white.
WIll appreciate any help.Whereas the
close all
[X,Y] = meshgrid(1:0.5:10,1:20);
x=[0 10];y=2*x;
hf1=figure;plot(x,y);set(gca, ‘color’, ‘none’)
exportgraphics(hf1,’test2d.pdf’,’BackgroundColor’,’none’)
Z = sin(X) + cos(Y);hf2=figure;surf(X,Y,Z);
set(gca, ‘color’, ‘none’);
exportgraphics(hf2,’test3d.pdf’,’BackgroundColor’,’none’);
hf3=figure;[X,Y] = meshgrid(-8:.5:8);R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;C = X.*Y;mesh(X,Y,Z,C)
set(gca, ‘color’, ‘none’);
exportgraphics(hf3,’test3d.pdf’,’BackgroundColor’,’none’);
I do get indeed transparent figures, but wih the folloing arning
Warning: Background transparency is not supported; using white instead
However, once I insert the pdf in my latex file, the background is white.
WIll appreciate any help. Whereas the
close all
[X,Y] = meshgrid(1:0.5:10,1:20);
x=[0 10];y=2*x;
hf1=figure;plot(x,y);set(gca, ‘color’, ‘none’)
exportgraphics(hf1,’test2d.pdf’,’BackgroundColor’,’none’)
Z = sin(X) + cos(Y);hf2=figure;surf(X,Y,Z);
set(gca, ‘color’, ‘none’);
exportgraphics(hf2,’test3d.pdf’,’BackgroundColor’,’none’);
hf3=figure;[X,Y] = meshgrid(-8:.5:8);R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;C = X.*Y;mesh(X,Y,Z,C)
set(gca, ‘color’, ‘none’);
exportgraphics(hf3,’test3d.pdf’,’BackgroundColor’,’none’);
I do get indeed transparent figures, but wih the folloing arning
Warning: Background transparency is not supported; using white instead
However, once I insert the pdf in my latex file, the background is white.
WIll appreciate any help. exportgraphics, backgorund MATLAB Answers — New Questions
moving two roi’s together
trying to move a circle roi and a crosshair roi together. when I move the circle I can move the the crosshair by having the drawcrosshair in the addlistener callback. however the previous one remains. Is there any way to make a group from two roi’s so both are moved together?
here is what I have:
hROI = drawcircle(‘Center’,[x, y],’Radius’,radius);
l = addlistener(hROI, ‘MovingROI’, @allevents);
function allevents(src,evt)
evname = evt.EventName;
switch(evname)
case {‘MovingROI’}
roiCH = drawcrosshair(‘Position’, evt.CurrentCenter, ‘StripeColor’,’r’, InteractionsAllowed = ‘none’);
end
endtrying to move a circle roi and a crosshair roi together. when I move the circle I can move the the crosshair by having the drawcrosshair in the addlistener callback. however the previous one remains. Is there any way to make a group from two roi’s so both are moved together?
here is what I have:
hROI = drawcircle(‘Center’,[x, y],’Radius’,radius);
l = addlistener(hROI, ‘MovingROI’, @allevents);
function allevents(src,evt)
evname = evt.EventName;
switch(evname)
case {‘MovingROI’}
roiCH = drawcrosshair(‘Position’, evt.CurrentCenter, ‘StripeColor’,’r’, InteractionsAllowed = ‘none’);
end
end trying to move a circle roi and a crosshair roi together. when I move the circle I can move the the crosshair by having the drawcrosshair in the addlistener callback. however the previous one remains. Is there any way to make a group from two roi’s so both are moved together?
here is what I have:
hROI = drawcircle(‘Center’,[x, y],’Radius’,radius);
l = addlistener(hROI, ‘MovingROI’, @allevents);
function allevents(src,evt)
evname = evt.EventName;
switch(evname)
case {‘MovingROI’}
roiCH = drawcrosshair(‘Position’, evt.CurrentCenter, ‘StripeColor’,’r’, InteractionsAllowed = ‘none’);
end
end roi, addlistener MATLAB Answers — New Questions