Réponse apportée

Finding a double in the workspace by name and assigning it to a new variable

this is for a single entry: ID=100; evalin('base',strcat('desired_variable_name=p',string(ID))) i don't know what ID looks li...

Finding a double in the workspace by name and assigning it to a new variable

this is for a single entry: ID=100; evalin('base',strcat('desired_variable_name=p',string(ID))) i don't know what ID looks li...

plus d'un an il y a | 0

| A accepté

Réponse apportée

How to create input and output port in Simulink and then connect them using Matlab script

Here is a link to the relevant mathworks documentation: https://ch.mathworks.com/help/simulink/ug/approach-modeling-programmatic...

How to create input and output port in Simulink and then connect them using Matlab script

Here is a link to the relevant mathworks documentation: https://ch.mathworks.com/help/simulink/ug/approach-modeling-programmatic...

plus d'un an il y a | 1

| A accepté

Question

I was late to a mathworks webinar

I registered for a mathworks webinar (Programming Robots with ROS and ROS2 using MATLAB) but i couldn't make it in time to watch...

plus d'un an il y a | 1 réponse | 0

Réponse apportée

Extract numerator and denominator from transfer function without manually adding it to the program?

supposing that your original function is defined as a transfer function model you can access its properties using dot notation. ...

Extract numerator and denominator from transfer function without manually adding it to the program?

supposing that your original function is defined as a transfer function model you can access its properties using dot notation. ...

plus d'un an il y a | 0

Réponse apportée

Simulink background color via CLI

after going through basically every property of the model with: get_param(modelName,'ObjectParameters') i found that the back...

Simulink background color via CLI

after going through basically every property of the model with: get_param(modelName,'ObjectParameters') i found that the back...

plus d'un an il y a | 0

| A accepté

Question

Simulink background color via CLI

i know that in order to change simulink bakcground you right click > Canvas > choose a color i also know that you can set vis...

plus d'un an il y a | 1 réponse | 0

Réponse apportée

Plot a plane from 3 points

basically after debugging i got this results: mesh(X,Y,Z) fails because Z is a 201x201 whose elements are ALL Inf. This is ca...

Plot a plane from 3 points

basically after debugging i got this results: mesh(X,Y,Z) fails because Z is a 201x201 whose elements are ALL Inf. This is ca...

plus d'un an il y a | 1

Réponse apportée

Software Version Control in Simulink: SVN vs GIT

My team has always used SVN and now we are transitioning to GIT. The best pro git argument is the well intergrated gui. Projec...

Software Version Control in Simulink: SVN vs GIT

My team has always used SVN and now we are transitioning to GIT. The best pro git argument is the well intergrated gui. Projec...

plus d'un an il y a | 0

| A accepté

Réponse apportée

Recommended practises for using git when collaborating using MATLAB/Simulink

I just did exactly the same thing with my team earlier this year and this is what i've learnt so far: Establish ownership early...

Recommended practises for using git when collaborating using MATLAB/Simulink

I just did exactly the same thing with my team earlier this year and this is what i've learnt so far: Establish ownership early...

plus d'un an il y a | 2

| A accepté

Question

xlst template for simulink xml parsing

i'm trying to export a simulink webview (without the use of the report generator toolbox). My thought was to convert the .slx ...

plus d'un an il y a | 1 réponse | 0

Réponse apportée

Change component size in system composer

via script: scTmpArc=open_system('scTmpArc') %sxTmpArc is the name of your system composer file set_param('scTmpArc/.../..',po...

Change component size in system composer

via script: scTmpArc=open_system('scTmpArc') %sxTmpArc is the name of your system composer file set_param('scTmpArc/.../..',po...

plus d'un an il y a | 1

Réponse apportée

How to set the state with different variables in properties?

use a struct: state.schedule= []; state.path=[]; state.completionTime=Inf; state.computerDuring=0; this will create a struc...

How to set the state with different variables in properties?

use a struct: state.schedule= []; state.path=[]; state.completionTime=Inf; state.computerDuring=0; this will create a struc...

plus d'un an il y a | 0

Réponse apportée

How to find and replace .tif in XML file In MATLAB

Try this: xmlFileDOM = xmlread('totallyAXml.xml'); %reads xml to dom xmlFileStr=string(xmlwrite(xmlFileDOM)); %cast dom to st...

How to find and replace .tif in XML file In MATLAB

Try this: xmlFileDOM = xmlread('totallyAXml.xml'); %reads xml to dom xmlFileStr=string(xmlwrite(xmlFileDOM)); %cast dom to st...

plus d'un an il y a | 0

Réponse apportée

how to find the value of an index in a for loop

if you just want to see how it varies numerically, print it: for i2=1:length(grid_ang) angsel=grid...

how to find the value of an index in a for loop

if you just want to see how it varies numerically, print it: for i2=1:length(grid_ang) angsel=grid...

plus d'un an il y a | 0

Réponse apportée

Why do I get the error "The specified module could not be found" when opening Simulink?

Try to use the Dependency Walker as suggested here Why do I receive a "specified module could not be found" error while running ...

Why do I get the error "The specified module could not be found" when opening Simulink?

Try to use the Dependency Walker as suggested here Why do I receive a "specified module could not be found" error while running ...

plus d'un an il y a | 1

Réponse apportée

Can't find control system tuner in simulink

Check if the installation was successful: Why are some of my Apps missing even though I have installed all of my toolboxes? - MA...

Can't find control system tuner in simulink

Check if the installation was successful: Why are some of my Apps missing even though I have installed all of my toolboxes? - MA...

plus d'un an il y a | 0

Réponse apportée

how to fix half saved image problem in pdf form

i think it's working correctly. Be careful because with this line: set(gcf, 'WindowState', 'maximized'); you specify that the ...

how to fix half saved image problem in pdf form

i think it's working correctly. Be careful because with this line: set(gcf, 'WindowState', 'maximized'); you specify that the ...

plus d'un an il y a | 0

| A accepté

Réponse apportée

Finding two similar Matrix in a whole set

this is for similarity: mtxs={[magic(4)],[randi(4,4)],[magic(4)],[randi(4,4)],[magic(4)],[randi(4,4)],[randi(4,4)],[randi(4,4)]...

Finding two similar Matrix in a whole set

this is for similarity: mtxs={[magic(4)],[randi(4,4)],[magic(4)],[randi(4,4)],[magic(4)],[randi(4,4)],[randi(4,4)],[randi(4,4)]...

plus d'un an il y a | 0

Réponse apportée

Place two 3d plots in the same grid so they can be compared

Supposing that the mesh function is called properly, the syntax seems alright, have you though that they may be coincident? l...

Place two 3d plots in the same grid so they can be compared

Supposing that the mesh function is called properly, the syntax seems alright, have you though that they may be coincident? l...

plus d'un an il y a | 0

| A accepté

Réponse apportée

error in movstd function

as the error says you are using a table as input when it is not a supported. According to the documentation (end error) the supp...

error in movstd function

as the error says you are using a table as input when it is not a supported. According to the documentation (end error) the supp...

plus d'un an il y a | 0

| A accepté

Réponse apportée

Can I simulate underwater robots with Simscape Multibody?

yes you can. Autonomous Underwater Vehicles – MATLAB & Simulink - MATLAB & Simulink (mathworks.com)

Can I simulate underwater robots with Simscape Multibody?

yes you can. Autonomous Underwater Vehicles – MATLAB & Simulink - MATLAB & Simulink (mathworks.com)

plus d'un an il y a | 0

Réponse apportée

how to find location of nans in a matrix

supposing you matrix is named 'm': nan=isnan(m); %returns 1 where NaN [rIdx,cIdx]=find(nan==1); %returns row and col indeces w...

how to find location of nans in a matrix

supposing you matrix is named 'm': nan=isnan(m); %returns 1 where NaN [rIdx,cIdx]=find(nan==1); %returns row and col indeces w...

plus d'un an il y a | 0

Réponse apportée

How to change a parameter in a model

Here is one solution: elements = {-10:1:10, -10:1:10}; %cell array with N vectors to combine combinations = cell(1, numel(el...

How to change a parameter in a model

Here is one solution: elements = {-10:1:10, -10:1:10}; %cell array with N vectors to combine combinations = cell(1, numel(el...

plus d'un an il y a | 0

Réponse apportée

Replace NaN's in timeseries with longterm median for specific dates

Try to see if this helps, it's conceptually the same thing but with the mean https://ch.mathworks.com/matlabcentral/answers/189...

Replace NaN's in timeseries with longterm median for specific dates

Try to see if this helps, it's conceptually the same thing but with the mean https://ch.mathworks.com/matlabcentral/answers/189...

plus d'un an il y a | 0

| A accepté

Réponse apportée

How to solve this worning in simulink

Without knowing anything about your code is hard to tell. See this thread for more information: https://ch.mathworks.com/matla...

How to solve this worning in simulink

Without knowing anything about your code is hard to tell. See this thread for more information: https://ch.mathworks.com/matla...

plus d'un an il y a | 0

| A accepté

Réponse apportée

prevent matlab from triggering alarm sounds in windows 10

i will be that guy... i just tried the: beep off and it works in matlab R2022a. Otherwise i have look at some past discussio...

prevent matlab from triggering alarm sounds in windows 10

i will be that guy... i just tried the: beep off and it works in matlab R2022a. Otherwise i have look at some past discussio...

plus d'un an il y a | 1

Réponse apportée

simulink for simulating a graph

Refer to this question for a solution:https://ch.mathworks.com/matlabcentral/answers/154695-how-to-use-symbolic-variables-and-fu...

simulink for simulating a graph

Refer to this question for a solution:https://ch.mathworks.com/matlabcentral/answers/154695-how-to-use-symbolic-variables-and-fu...

plus d'un an il y a | 0

Réponse apportée

How to combine desired cropped image to another image?

the easy solution is to find a mask image with a transparent background (format files as .png and .svg support it). the medium ...

How to combine desired cropped image to another image?

the easy solution is to find a mask image with a transparent background (format files as .png and .svg support it). the medium ...

plus d'un an il y a | 0

| A accepté

Réponse apportée

I am having a hard time getting the matrix multiplication to work due to incompatible matrix sizes.

I found the issue, i'll guide you through it but unfortunatly i cannot solve it for you since i'm not sure on what your goal is....

I am having a hard time getting the matrix multiplication to work due to incompatible matrix sizes.

I found the issue, i'll guide you through it but unfortunatly i cannot solve it for you since i'm not sure on what your goal is....

plus d'un an il y a | 0

Réponse apportée

Execution of script as a function is not supported

there is no definition of the function mix_2d_lp_fonc(), at least not in the file you shared. It's just the name of the script ...

Execution of script as a function is not supported

there is no definition of the function mix_2d_lp_fonc(), at least not in the file you shared. It's just the name of the script ...

plus d'un an il y a | 0