Contenido principal

Resultados de

Explore resources, ask questions, and discuss topics related to using Simulink to apply power electronics control to Electric Vehicles, Renewable Energy, Battery Systems, Power Conversion, and Motor Control. This is the 3rd MATLAB Central community, after Maker and SimBiology , and is moderated by Tony Lennon . Tony is the Power Electronics Marketing Manager at MathWorks.

Visit the community here . As always, let us know what you think by liking this post or commenting below.

Hi, I'm trying to solve this problem but I'm getting an error so far.
Problem:
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have
a = [1 2 2 2 1 3 2 1 4 5 1]
The answer would be 2, because it shows up three consecutive times
What I've written so far (not done):
a = [1 2 2 2 1 3 2 1 4 5 1];
[x,y] = size(a);
counter = zeros(1,10);
if x == 1
for i=1:1:y
if a(i) == a(i+1)
counter(a(i)) = counter(a(i))+1
end
end
else
for i=1:1:x
if a(i) == a(i+1)
counter(a(i)) = counter(a(i))+1
end
end
end
But it says "error" in the line of "if a(i) == a(i+1)". I noticed that it creates a variable called "i" which value is 11, but it should create a vector from 1 to 11. What's wrong here?
I know my solution might not be in the right direction or something, but please don't tell me anything!
Thanks in advance

I am fitting a generic TMDD model to date. Model fits look reasonable. Once I create a variant and simulate data for various doses to create observed vs predicted concentrations vs time profile, then simulated concentrations do not match fitted profiles. Simulated concentrations are either significantly higher or lower than the model fits. Not sure what is wrong. Fits look fine but simulated profiles using fitted parameters are all over the place.

Hello all,

I have created an arbitrary model for microtubule behavior. More or less just trying to familiarize with the software. I have created plots for multiple types of reactions that may occur and am looking to now plot the instantaneous derivative of each reaction. Would anyone have any suggestions as to how I could do this? I am familiar with how to do it with a clearly defined function with x,y,z,etc. values. However the 'sbiomodel' command doesn't seem to show me a function so I'm really lost on this.

Thanks for any and all help/suggestions.

Hello,

I have a suggestion for a feature which I think would be nice to add in SimBiology: a "date modified" field for all of the objects (species, parameters, rules, etc). It would be nice for this to be visible in the tables in the GUI, as well as being available through code, and to be able to sort on this field in the GUI. The reason I thought about this is because I just got a model with some updates from a colleague, and this would help me to identify what they updated.

Thank you,

Abed

In previous versions, there was an option for exporting fit results as a report. Now it is not there.

There will be an introductory hand-on SimBiology workshop following ACoP on Friday, Oct 24 at University of Florida, Orlando Campus, sponsored by Prof. Sihem Bihorel.

To register, please send me a direct message from the community site or e-mail me at fbuyukoz[at]mathworks.com. Please also let your colleagues know who might be interested in attending. Space is limited and will be allocated to those who sign up first.

Agenda

Introduction

  • Overview of MATLAB and SimBiology
  • Navigating the SimBiology desktop environment
  • Working with a SimBiology project

Building and Simulating Mechanistic Models, using a TMDD example

  • Overview of the building blocks and modeling architecture
  • Building models using the SimBiology block diagram editor
  • Configuring simulation-related settings (solvers, tolerances, sampling time, etc.)
  • Exploring model dynamics and sensitivity using parameter sliders and sensitivity analysis
  • Simulating hypothetical scenarios and dosing schedules

Implementing Traditional Compartmental PK/PD Workflows, using a 1 compartment PK model as example

  • Importing, processing and visualizing data
  • Performing non-compartmental analysis (NCA)
  • Estimating parameters using nonlinear regression and population-based methods

Programmatic SimBiology and Integration with MATLAB

  • Writing custom analysis tasks
  • Automating workflows using MATLAB scripts
Rik
Rik
Última actividad el 4 de Nov. de 2022

There are multiple ways to create a graphical user interface (GUI) in Matlab. Which method is the best depends on multiple factors: the complexity of the project, to what extent it should be a long-term solution, on what releases your GUI should work, your available time, your skill level, and probably other factors I'm forgetting.
To keep the thread clear I'll attempt to provide a short outline a few ways in this question, and leave the details for the answers. (@anyone with editing privileges: feel free to update the section below if I missed something important and am slow in editing this question)
---------------------------------------------------------------------------------------------------
GUIDE
GUIDE is probably the first tool new users will encounter. It is very useful for quickly putting something together, but it is otherwise fairly limited. It requires maintaining (and distributing) both a .m and a .fig file. Note that the GUIDE environment will be removed in a future release. After GUIDE is removed, existing GUIDE apps will continue to run in Matlab but they will not be editable in GUIDE. If you're starting a new GUI, don't use GUIDE. If you're updating an existing GUIDE GUI, migrate it to AppDesigner. In R2021a the first step for this removal was taken: all templates except the blank template have been removed.
GUILT
Although I haven't had a detailed look myself, it seems a list like this is not complete without at least mentioning the GUI Layout Toolbox, which is available on the file exchange and offers a lot of customization options.
Programmatic GUIs
You can bypass GUIDE and use the normal figures and functions like uicontrol to build GUIs from code. This makes the design less visual, but more flexible for future additions.
App Designer
The official successor to GUIDE, AppDesigner is not based on functions, but works similar to a class. It uses uifigure and mostly uses graphical elements that are incompatible with 'normal' GUIs that are created with a figure (or .fig).
David
David
Última actividad el 2 de Oct. de 2019

Over the past several months our communities have been the target of ongoing spam attacks. Spam is a common issue online and spam prevention is something we include as part of our standard development processes. The most recent attempts appear to be specifically targeting our sites with a combination of manual and automated attacks, probing with a variety of content attempting to bypass our filters. Regrettably, the attacks sometimes make it through our defenses, cluttering your inboxes and the content in our communities.

Rest assured, we are dedicated to continuing to evolve our tools and improve our capabilities to meet the goal of eliminating all spam in our communities. We appreciate your patience and understanding as we work to get there.

Sincerely,

David Wey

MATLAB Communities Development Manager

MathWorks, Inc.

Iraj Hosseini
Iraj Hosseini
Última actividad el 1 de Oct. de 2019

ACoP10 Workshop – October 19, 2019

QSP Model Development Using gQSPSim: A GUI-Based Open-Source Platform for SimBiology Models

Organized by Genentech and MathWorks

Andrew Heitman
Andrew Heitman
Última actividad el 16 de Jun. de 2020

IS there a quick and easy way to calculate AUC in SimBiology without exporting results to an NCA analysis>?

can we directly get the SD of the concentration-time AUC after fitting in Simbiology?

Hi, How do I get a numeric integral from a function that uses Excel file input data? I have been able to import the excel file but am having trouble continuing the code,please guide me, thank you

We have a Systems Biology and Biotechnology Specialization on Coursera which has the following specific courses:

1. Introduction to Systems Biology

2. Experimental Methods in Systems Biology

3. Network Analysis in Systems Biology

4. Dynamical Modeling Methods for Systems

5. Integrated Analysis in Systems Biology

6. Systems Biology and Biotechnology Capstone

For "Systems Biology and Biotechnology Capstone", "Dynamical Modeling Methods for Systems", and ":Integrated Analysis in Systems Biology", MATLAB is used for mathematical models and bioinformatics analyses. All assignments with dynamical models are also presented as MATLAB codes and SimBiology Models. The Systems Biology Specialization covers the concepts and methodologies used in systems-level analysis of biomedical systems. Successful participants will learn how to use experimental, computational and mathematical methods in systems biology and how to design practical systems-level frameworks to address questions in a variety of biomedical fields. In the final Capstone Project, students will apply the methods they learned in five courses of specialization to work on a research project.

Here is the link to all of these courses:

https://www.coursera.org/specializations/systems-biology

If you have any question about these courses please let me know.

Iman Tavassoly MD, PhD Icahn School of Medicine at Mount Sinai

This is the 5th installment of the wish-list and bug report thread.
This topic is the follow on to the first Wish-list for MATLAB Answer sections and second MATLAB Answers Wish-list #2 (and bug reports). The third started out as New design of the forum - grey on white and the fourth MATLAB Answers Wish-list #4 (and bug reports) is also growing so large it is slow to load and navigate.
Same idea as the previous ones: one wish (or bug report) per answer, so that people can vote their wishes.
What should you post where?
Wishlist threads (#1 #2 #3 #4 #5 #6): bugs and feature requests for Matlab Answers
Frustation threads (#1 #2): frustations about usage and capabilities of Matlab itself
Missing feature threads (#1 #2): features that you whish Matlab would have had
Next Gen threads (#1): features that would break compatibility with previous versions, but would be nice to have
@anyone posting a new thread when the last one gets too large (about 50 answers seems a reasonable limit per thread), please update this list in all last threads. (if you don't have editing privileges, just post a comment asking someone to do the edit)

Hi, I am intrigued by the idea of using the simbiology stochastic solvers for a project that I have so far coded in the idnlgrey framawork.

Some of the ODE right hand sides (ionic fluxes) in my model are given via fitobjects.

My question is: can I use a fit object in simbiology? Or should I figure out an analytical form and use it as a custom reaction rate?

Thanks, Francesco

On using Simbiology, I am realizing how wonderful it is! It is equivalent and infact better than much commercial software available in the market for hefty prices (not to name anyone in purpose). Moreover, the product is backed up by the world leaders in software engineering - MATLAB (which gives more confidence to the product). It would be very helpful if someone can share the list or some of the PubMed indexed publication on population pharmacokinetics in which Simbiology is utilized for modeling and computation.

Identification of model (one compartment, two compartments or three compartments) which a drug follows is an important step before population pharmacokinetic modeling. I am aware that the graph between the concentration vs time, gives an idea of the number of compartment a drug follows.

But is there a standard way to explore and determine the number of compartment a drug follows in a more objective manner. This would also be helpful to determine the model in which the data needs to be fit. In addition, a note on determining the order of reaction is also welcomed and would make the discussion complete.

Jeremy Huard
Jeremy Huard
Última actividad el 7 de Jun. de 2019

Fulden and I will have a booth at PAGE next week. Come and chat with us to learn the latest with MATLAB and SimBiology for PK/PD, PBPK, and QSP modeling.

I use Simbiology for population PK-PD model development. During the model fitting of data, I understand that the model diagnostics play a major decisive role in selecting the suitable model. Hence would like to make it clear regarding the interpretation of the model diagnostics.

If for example, I have two models. First model: DFE= 411, LogLikelihood = - 807.6 (minus 807.6), AIC = 1633.2 , BIC = 1647.2 and RMSE = 1.92 Second model: DFE= 410, LogLikelihood = - 888.8 (minus 888.8), AIC = 1797.6 , BIC = 1813.2 and RMSE = 0.34 Which among the model is better and why? What are the individual interpretation of DFE, LogLikelihood, AIC, BIC and RMSE?

In PK-PD research paper generally, they take Objective Function value as decisive model diagnostics. What is the Objective Function Value in Simbiology? I did some literature search and found that Objective Function Value is -2 times LogLikelihood value? So should I multiply the LogLikelihood value given in Simbiology by - 2 to obtain Objective Function Value? Moreover, if the LogLikelihood value is multiplied with -2 then the entire interpretation will be changing (as minus will reverse the direction). So please guide in this regard and give your valuable inputs.