Answered
How can I set new value in xml (DOM) per variable in workspace
abc=5; num2str(abc) should give you '5'

8 years ago | 1

| accepted

Answered
How to convert (2x3)[each element in 2x3 contains 1x19 double]cell array ?
my guess, A is the original data, B is the desired result A=repmat({1:5},2,3); B=cell2mat(reshape(transpose(A),[],1))

8 years ago | 0

| accepted

Answered
Which License am I using for each toolbox
I put the following text into a .bat file and run it in Windows Command Prompt. See if you can modify it and make it work for yo...

8 years ago | 0

Answered
dynamically change simulink library path
I did an experiment and it seemed to work. # Construct a library model with a SubSystem block, mask it as 'LibA' and save it ...

8 years ago | 0

Answered
How to find variables solver assigned to simulink
In your Simulink model, click menu "Simulation", "Model Configuration Parameters" Select "Solver" on the left panel, on the r...

8 years ago | 0

Answered
Need help to implement Trapezoidal Velocity Profile in Position control of DC motor (simulink)
Use "Repeating Sequence", or "Signal Builder" block, signal, new, custom ... Specify the trapezoidal wave using time-value da...

8 years ago | 0

Answered
Exporting the model browser list of subsystems - Simulink
find_system(bdroot,'Blocktype','SubSystem') check for other options of find_system

8 years ago | 0

| accepted

Answered
Simulink 2017a model window resuse preference?
I am not sure if this is what you want. Right click a subsystem block, click "open in new tab" or "open in new window".

8 years ago | 0

Answered
How to display the x and y values of the cursor location on plot in GUIDE
Would this help? doc datacursormode

8 years ago | 1

| accepted

Answered
How can I copy a set of files from an a drive with Read-only access to a local drive?
Double check again. You should have no problem copying files from a read-only source location. The file might also be read-only ...

8 years ago | 0

| accepted

Answered
use logical indexing to access multiple lines syntax
temp=p552r1_tnL(p,1:3)

8 years ago | 2

| accepted

Answered
How to Sum each nth Pages of a Three Dimensional Matrix?
the size of your original matrix, say A, needs to be 21x23x248, right? sz=size(A) B=reshape(A,sz(1),sz(2),8,[]); sque...

8 years ago | 0

| accepted

Answered
Convert cell array of character vectors to evaluable expressions
NewList=strrep(list,'{','('); NewList=strrep(NewList,'}',')'); cellfun(@str2num,NewList)

8 years ago | 0

Answered
Nonconvential files data extract
Move these two lines from inside the for-loop to outside. Data = nomfiles{i}; DataAll(:,1) = Data In fact, you can c...

8 years ago | 0

Answered
Selecting values off of a matrix based on the values on another matrix
index=sub2ind(size(A),B(:,1),B(:,2)) A(index)

8 years ago | 0

Answered
Why I get this error? how can I solve it?
Need your returnindex.m to see the problem. Most likely, it has a output argument called "ind" but was not assigned.

8 years ago | 0

| accepted

Answered
auto generating test cases with simulink testing toolbox
It's in the other toolbox "Simulink Design Verifier".

8 years ago | 0

Answered
SIMULINK not recognizing Variables defined in Annotation box
Your assignment needs to be put in the "ClickFcn" box or check that "Use annotation text as Click callback". Also, it does requi...

8 years ago | 0

| accepted

Answered
How to create a level triggered subsystem in simulink ?
Use an "Enabled Subsystem" block or even the "Enabled and Triggered Subsystem" block.

8 years ago | 0

| accepted

Answered
Is it possible that a C-mex s-function outputs single float data ?
ssSetOutputPortDataType()

8 years ago | 0

Answered
How would my script to show this in the command window?
Michael, Initially, set s to be zero because no loop has been executed yet. Set m to be the same as x. Inside the loop, s...

8 years ago | 0

| accepted

Answered
Help on my function script?
almost there while x>1 if mod(x,2)==0 %shows x(natural number) is even x=x/2 elseif mod(x,2)==1 %s...

8 years ago | 0

| accepted

Answered
Define the settling time t(s) in MATLAB
here is a clue, find(and(abs(x1)>=0.01, abs(x2)>=0.01),'last')

8 years ago | 0

Answered
Importing and naming files in a loop
Without more details, the first thing to correct is the variable name Test(i)_1L should be Test_1L(i)

8 years ago | 0

| accepted

Answered
Delete rows from matrix and table
something like this? A=magic(10); rows=[1,3,9]; A(rows,:)=[];

8 years ago | 1

| accepted

Answered
xlabel,ylabel title not displaying
should be title('The vertical vs x axis'); ylabel('The vertical'); xlabel('The horizontal x axis');

8 years ago | 3

| accepted

Answered
Copy subsystem mask to model mask
Are you supposed to add a "Model" block to your "newModel"? You can't mask the root level model. Rather, you can copy the mask t...

8 years ago | 0

Answered
How does Simulink Selector block work to extract dimension MxN matrix into 1xN row vectors?
Are you sure? I tried as your example and there is no error. The error happened in "Selector1" yet the dialog show "Selector2" a...

8 years ago | 0

| accepted

Load more