질문


Is there a clever way to isolate Simulink Parameter callback workspace?
The |run| command runs a script in the |caller| workspace. That got me thinking that there might be a clever way to run code in ...

거의 7년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How do I compare a Simulink Disabled Library Block Against the Library?
One workaround is to put the blocks that you want to compare in there own models and save them as model1 and model2. Then you ca...

거의 7년 전 | 0

질문


Why does the Simulink block mask initialization run twice?
If you are debugging a mask initialization, use the |keyboard| function to stop the code inside the Simulink block mask initiali...

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


How do I compare a Simulink Disabled Library Block Against the Library?
# I made a library block. # I made a model that used that library block and I "disabled" the library link. # I want to compa...

거의 7년 전 | 답변 수: 2 | 2

2

답변

질문


Tight Boundary around a Set of Points
I want to draw a tight boundary around a set of points. The code is used below to draw the black boundary around the blue points...

8년 초과 전 | 답변 수: 3 | 0

3

답변

질문


Multidimensional array indexing question
I have a matrix |x| that is of size [61 2 45]. linearIndex = find(x(:,1,:) < x(:,2,:)); xAverage = (x(:,1,:) + x(:,2,:))...

8년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Sundials Solver in MATLAB/Simulink
I noticed that the <https://computation.llnl.gov/casc/sundials/main.html Sundials solver> is implemented and and used someplace...

8년 초과 전 | 답변 수: 3 | 0

3

답변

답변 있음
Large Sparse Rectangular Over-determined Equation System (to reorder or to not reorder)
In |spparms.m| (version 2015b) there is the following note: % Solving rectangular matrices within \ and /: % The ...

8년 초과 전 | 0

| 수락됨

답변 있음
Large Sparse Rectangular Over-determined Equation System (to reorder or to not reorder)
I found the <https://youtu.be/7ph4ZQ9oEIc video on SuiteSparse> was very helpful. It talked about least square matrix problems a...

8년 초과 전 | 0

답변 있음
i am solving over-determined system but when i run my code its give me result inner dimension mismatch how to solve it
Your code is a bit cryptic because it is clear you don't know the right MATLAB syntax. So the way I will try to help is guess at...

8년 초과 전 | 0

| 수락됨

답변 있음
Though the processed signal plays in spectrogram demo , it doesnt play in vlc media player or any other players!!! what do i do now???
How did you write the file to an audio file? Did you use audiowrite? http://www.mathworks.com/help/matlab/ref/audiowrite.html...

8년 초과 전 | 0

질문


Large Sparse Rectangular Over-determined Equation System (to reorder or to not reorder)
I have a sparse rectangular matrix A of size m x n. m > n always. I want to solve this system of equations in a least squares ma...

8년 초과 전 | 답변 수: 3 | 0

3

답변

질문


pathdef.m, MATLAB upgrade, and Linux
I use a custom pathdef.m on linux. When I upgrade my MATLAB, the pathdef.m file from the previous setup isn't correct anymore be...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


What is the best way to get the name of a variable in a script?
What is the best way to get the name of a variable in a script? The below code works but I am wondering if there is a built-i...

거의 9년 전 | 답변 수: 2 | 6

2

답변

질문


What is the best way to write a duration type to an Excel file?
I have an array of duration type. I want to write it to Excel and then use it as a time in excel. Is there a recommended way to ...

거의 9년 전 | 답변 수: 2 | 0

2

답변

질문


hh:mm:ss string to duration type
I have strings that look like this: '24:06:26' and '7:20:26'. I want a duration type. What is the best way to get this? All I...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


Using Deval with Simulink Output
Is there a way to use |deval| with the output from simulink. |deval| works fine with a solution structure from the ODE integrato...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Set of Complex Numbers Symbol in Published Code
How do I use the symbol for the complex number set in latex markup in MATLAB? None of these have worked: \mathbb{C} \Co...

거의 10년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Spellcheck functionality in MATLAB editor
Spell check would be great if it only corrected comments. It must not operate on code. I would use it. I use Notepad++ to s...

거의 10년 전 | 4

답변 있음
Partition Domain Given Data of the Form w = f(x,y,z)
The function below exploits the fact that you can use the point u = [x,y,z] to calculate the partition location of the point. O...

10년 초과 전 | 1

| 수락됨

답변 있음
How to solve differential equations with parameters using fmincon to find out optimized parameters
You need two functions: # Function to compute derivative. Mine is called "derivative." # Function to compute objective func...

10년 초과 전 | 2

| 수락됨

답변 있음
How to determine the Voronoi center coordinates knowing ?
This does not deal with the inf's. You will have to replace the infinities with finite values on your boundary to get a better ...

10년 초과 전 | 0

답변 있음
Voronoi Diagram with Delaunay Triangulation overlay
Try this: clc; clear all; close all; n=5; x = 10*rand(1, n); y = 10*rand(1, n); voronoi(x,y,'--k'); DT =...

10년 초과 전 | 2

| 수락됨

답변 있음
How to make the attachment like simulation on MATLAB...I can not find how they have done this
Have you tried SimMechanics?

10년 초과 전 | 1

| 수락됨

답변 있음
How to colour a 3D image with a continuous spectrum of colours
The |patch| command's fourth argument, C, is the color of the that patch. Your C matrix is C=0. That is the problem. Instead ...

10년 초과 전 | 3

| 수락됨

답변 있음
How can i put my output numbers in for loop to an array
This assumes the bitmaps are all the same size: myArray = [img{:}];

10년 초과 전 | 2

| 수락됨

답변 있음
How to minimize [sum of four equations] when I have their differential equations with two variables
This is a prime candidate for "grey box" modeling with the "System Identification Toolbox" which has a nice GUI. If you want ...

10년 초과 전 | 1

| 수락됨

답변 있음
Where can I find a list of built-in example data?
This will work: pathFolderList = strsplit(path(),';'); matFilesOnPath = cell(size(pathFolderList)); matFileCount = 0; ...

10년 초과 전 | 1

답변 있음
load a file and sort out bad data.
You should use the lower level fgetl which gets one line at a time as a string. You can then parse that line in a while loop. ...

10년 초과 전 | 1

| 수락됨

답변 있음
How to ignore specific parts of a plot ??
Given the mesh I see in your picture, the following works becuase your elements are not distorted and your edges are very close ...

10년 초과 전 | 2

| 수락됨

더 보기