Feeds
質問
App designer hide/show line graph on axes
Hi, For the life of me I cannot hide/show a graph on my axes when I click a checkbox. I've tried something like: set(app.graph...
1年以上 前 | 1 件の回答 | 0
1
回答質問
Fill a matrix with another buy keep the original size
Hi, I have a 5x5 matrix (for example) filled with zeroes and I just want to fill that matrix from the top with another one whic...
1年以上 前 | 1 件の回答 | 0
1
回答質問
Legend of graph doesn't match plot color and style
Hello, I have searched the forum and found some info regarding the legend color not matching the lines. However, I cannot get...
6年弱 前 | 1 件の回答 | 0
1
回答質問
Array manipulation issue in Simulink
Hello, I am trying to manipulate an array in Simulink through Matlab function block, but despite trying different ways of doi...
6年以上 前 | 1 件の回答 | 0
1
回答質問
How to retrieve previousely created figures into a GUI
Hello, I know this has been a bit covered many times (I've had long searches and tests before posting this), but I cannot mak...
8年以上 前 | 2 件の回答 | 0
2
回答質問
Way to set a cell array of strings to 0 or 1 depending on the string?
I have a cell array of strings (1000x1 cell) containing either "On" or "Off". Is there a simple command to replace "On" by 1 and...
9年弱 前 | 2 件の回答 | 0
2
回答質問
Dynamic camera Sim mechanics
Hello, I would like to know if there is a way to "fix" a camera onto a movable object. As the objects moves quite a bit (doze...
9年弱 前 | 0 件の回答 | 1
0
回答質問
Create a script to convert HEX line from DEC line number (and reverse)
Hello guys, I would like to know if you can give me some help in making a script file that will convert a decimal number into...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Colorize table cells upon matrix of logical values
Hello guys, I would like to know how can I colorize the cells of a table that I have in a GUI upon a matrix values. In det...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Convert BIN to HEX
Hello guys, I have a .BIN file that looks like this when opened in Matlab: <</matlabcentral/answers/uploaded_files/38627/...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Speed up Simulink model which uses a Matlab function block
Hello, I would like to speed up the running of my Simulink model that uses a Matlab function block. Without that function blo...
9年弱 前 | 0 件の回答 | 0
0
回答質問
Rotate a 4D matrix
Hello, I have a 4D matrix at the moment which contains coordinates (X, Y, Z). I would like to know how can I rotate that matr...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Combine 3 matrices (3D)
Hello all, I have 3 matrices A, B, C, each has a size of 200x50x50. They are coordinates (X, Y, Z) of points that represent a...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Simple problem yet I cannot find the error
Here is my script: haut=0.5 larg=0.5 long=2 A=linspace(1, larg*100, larg*100)'; % y B=linspace(1, long*100, lon...
9年弱 前 | 0 件の回答 | 0
0
回答質問
Discretize a volume into smaller known volume sizes
Hello guys, I have a simple shape at my disposal, and I would like to know how to discretize it. For example if I have a sphe...
9年弱 前 | 1 件の回答 | 0
1
回答質問
3D rectangle interaction with plane - Compute cut volume
Hello, Using Simmechanics, I have a 3D rectangle that I am intersecting with a plane at a known position. What I would like t...
9年弱 前 | 0 件の回答 | 0
0
回答質問
Matlab font changes in GUI between 2 computers with same version of Matlab
I would like to know how can I check Matlab's default font for GUI content (static text for example). The issue is that when ...
9年弱 前 | 0 件の回答 | 0
0
回答質問
Check edit text box validity for "i" and "j" characters
Hello, I have in my GUI an edit text item where the user has to enter only numbers. I check this with the following command: ...
9年弱 前 | 2 件の回答 | 0
2
回答質問
Sum of defined portion of a 3D matrix
Hello, I would like to sum different layers of a 3D matrix, but I don't know an easy way of doing it. Basically what I would ...
9年弱 前 | 1 件の回答 | 0
1
回答回答済み
Issue with random function
I found the issue to the problem. I named a variable "rand" earlier in my code. Matlab didn't give me any information this would...
Issue with random function
I found the issue to the problem. I named a variable "rand" earlier in my code. Matlab didn't give me any information this would...
9年弱 前 | 0
| 採用済み
質問
Issue with random function
Hello guys, I have an issue with the function RANDOM that is not producing random numbers as it should. Here is the code: ...
9年弱 前 | 2 件の回答 | 0
2
回答質問
Using a generated variable name as a handle for set function
Hello! I would like to know how can I use a generated variable name to be used as a handle for the SET function. I have the c...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Generate random number between 0 and a non-integer value
For my project I need to generate a random number between 0 and a non-integer value (eg. 0.854, 2.534). How can I do that in Mat...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Elegant way of "sending to the next row" in a matrix
Hello, I have a 1x36 matrix that I want to cut in bits. In my specific case I want to obtain a 6x6 matrix from this 1x36 matr...
9年弱 前 | 2 件の回答 | 0
2
回答質問
Create a variable from string
Hello! In my Matlab program, I have a class named "time". In this class I have a variable named "car". in a FOR loop, I am ad...
9年弱 前 | 1 件の回答 | 0
1
回答質問
Clear function works in command window but not in script file
Hello everyone, I am facing a weird problem here with the CLEAR function. I am generating a string using the following functi...
9年弱 前 | 2 件の回答 | 0
2
回答回答済み
Cannot delete text added to scatter plot points
Basically I have 1 pushbutton that adds points to the pointM matrix, as well as the color and size parameters for the scatter pl...
Cannot delete text added to scatter plot points
Basically I have 1 pushbutton that adds points to the pointM matrix, as well as the color and size parameters for the scatter pl...
約9年 前 | 0
質問
Cannot delete text added to scatter plot points
Hello! I have an issue regarding TEXT items. I have a scatter plot which works fine, then I am adding to the points some simp...
約9年 前 | 2 件の回答 | 1
2
回答質問
Resize automatically GUI to screen resolution
Hello guys, I made a GUI through Guide and a script linked to it. This GUI was based on a 1080p screen resolution but I would...
9年以上 前 | 1 件の回答 | 0
1
回答回答済み
Improve calculation time with plots
Thanks for your answer. I tried the ADDPOINTS function but it is much slower than just using the set function (I checked that wi...
Improve calculation time with plots
Thanks for your answer. I tried the ADDPOINTS function but it is much slower than just using the set function (I checked that wi...
9年以上 前 | 0