Question

Siumlink functionality (load_system) not supported by Compiler

Hello, I have made an executable using MATLAB compiler but it doesn't run properly. A part of my code runs a SIMULINK model ...

3 years ago | 1 answer | 0

Question

drawnow's low speed

Hello, I have written a code which animates the motion of a ball. Here is the code: n = 100; axes('XLim', [-10 10], ...

3 years ago | 1 answer | 0

Question

Error: Values of BreakpointsForDimension1 in 'Lookup_table' must be monotonically increasing.

Hello, I'm frustrated with the error that I'm getting while running my simulink model which has a 1-D lookup table. The looku...

4 years ago | 2 answers | 0

Question

matrix whose cell arrays are vectors

Hi, I am trying to form a 5x20 matrix whose arrays are themselves 3x1 matrix (x(i), y(i), z(i)) in each row: x = zeros...

4 years ago | 1 answer | 0

Question

Finding the closest point right after a value in ode45

Hi, I have the following code which I'm trying to solve using ode45 function. v = y(1); gamma = y(2); ...

4 years ago | 1 answer | 0

Question

Call to functions in external DLL fails

I am loading a DLL along with its include file. Libfunctions lists all the functions properly. Call to the functions fail with ...

5 years ago | 0 answers | 0

Question

Error using "light('Position', [0 0 0], 'Style', 'local')"

Hi, I'm using this code to create a light source that emanates light to all directions: light('Position', [0 0 0], 'Sty...

5 years ago | 1 answer | 0

Question

V Realm Builder (VRML)

Hi, I'm trying to make a 3D world using V Realm Builder available in MATLAB. I am wondering if I can import the object that ...

5 years ago | 0 answers | 0

Question

Error using "set"

Hi everyone. Thank you for reading my question. I receive the following errors when I run my code in MATLAB 2015a: ...

5 years ago | 1 answer | 0

Question

Error in running "load topo" in MATLAB 2015a

Hi everyone, My code, designed in MATLAB 2013a, contains: load topo which works fine but I get the following err...

5 years ago | 0 answers | 0

Question

Error in function "rotate" in version 2015a

Hi everyone, I wrote a code in version 2013a which uses _rotate_ function but when I run the code in MATLAB 2015a I get the ...

5 years ago | 1 answer | 0

Question

Save old values in an iteration (while loop)

Hi, In Newton_Raphson iteration, I need to compare old and new values of X so that it stops when their difference is very sm...

5 years ago | 1 answer | 0

Question

solve symbolic function - I get non-simplified term

Hi, I use syms X, Y, Z to solve for the jacobian of a matrix Xn and then plug in the values for X, Y, Z (1.5, 2.2, 8) but wh...

5 years ago | 1 answer | 0

Question

Get error using function "light"

Hi, I'm using this code to create a light source that emanates light to all directions: light('Position', [0 0 0], 'Styl...

6 years ago | 0 answers | 0

Question

Replace Mathworks icon with my own in the figure

Hi, I have designed an app which I want to sell as an exe file (which is run outside MATLAB environment). I was wondering if it...

6 years ago | 1 answer | 0

Question

Compose scene around object using camlookat

Hello folks, I have created three spheres in a GUI (without GUIDE) which are located far from each other as you see below: ...

6 years ago | 0 answers | 0

Question

How to display image in a GUI programmatically (without GUIDE)

Hi everyone, I have created a GUI (without GUIDE) in which I have added an "axes" as follows: logo_tos = axes('parent'...

6 years ago | 1 answer | 0

Question

Help needed to vectorize this code

Hi everyone, I'm posting this for the second time so hopefully someone can help me with vectorizing my code. I have 3 _for_...

6 years ago | 0 answers | 0

Question

JAVA or C++? Which one works better with MATLAB?

Hi, Which one is more interactive with MATLAB? JAVA or C++?

6 years ago | 1 answer | 1

Question

Locate an installed software in Windows using MATLAB

Hi, Is it possible to find the location of an installed software in Windows using MATLAB? I need my MATLAB code to find the ...

6 years ago | 1 answer | 0

Answered

How can I get the value of toggle button (uicontrol)

It doesn't return anything. Nothing happens when I click on it.

How can I get the value of toggle button (uicontrol)

It doesn't return anything. Nothing happens when I click on it.

6 years ago | 0

Question

How can I get the value of toggle button (uicontrol)

Hi fellow MATLAB users, I have created a toggle button in a figure programmatically using uicontrol: tb = uicontrol(gt...

6 years ago | 2 answers | 0

Question

How to stop the program while closing the figure that shows an animated plot

Hello everyone, I've designed a figure which shows a 2-D animation of a plot using _drawnow_ . When I click on close button,...

6 years ago | 1 answer | 0

Question

Alternative method needed for a few 'for' loops inside each other

Hi, I have 4 _for_ loops inside each other as seen here: for A=1:a for B=1:b for C=1:c ...

6 years ago | 1 answer | 0

Question

Text is Indented to the right when I generate PDF report using Report Generator

Hi, I have generated a PDF file using MATLAB Report Generator with MATLAB 2013a. The problem that I'm facing is that the par...

6 years ago | 0 answers | 0

Question

Running .exe file from MTLAB using system()

Hi everyone, I use _system_ to run my executable file: system('myfile.exe') The problem that I'm facing is that it ...

6 years ago | 2 answers | 0

Answered

For loop in Simulink

Thank you very much for your help. I made the model exactly as you depicted and used index vector and assignment blocks however,...

For loop in Simulink

Thank you very much for your help. I made the model exactly as you depicted and used index vector and assignment blocks however,...

6 years ago | 0

Question

For loop in Simulink

Hi everyone, I need to convert the following code to a SIMULINK model: T = [2; 21; 22; 27; 27; 21; 18; 21; 26; 36]; for...

6 years ago | 2 answers | 0

Question

For loop in SIMULINK

<</matlabcentral/answers/uploaded_files/23785/sample_model_image.png>> Hi everyone, I need to convert the following code t...

6 years ago | 0 answers | 0

Question

Run matlab function inside a simulink model

Greetings, I'm trying to run a matlab function using function block inside a SIMULINK model but I get multiple errors. Since ...

6 years ago | 1 answer | 0