Answered
Save Excel cell range as image with activeX
Range.CopyPicture method (Excel)

7 years ago | 0

Answered
Getting out of while loop when user says end
Use isequal(answer,'Yes') or strcmp(answer,'Yes') 'Yes'=='No' will cause the problem.

7 years ago | 0

| accepted

Answered
Defining Matlab function datatype input in Simulink
In the MATLAB Funciton editor, click icon "Edit Data". Or in Simulink, Ctrl+H to open Model Explorer, on the left column, navig...

7 years ago | 1

| accepted

Answered
How to programmatically name blocks when creating a model
handle=add_block(...); set(handle, 'Name','YourBlockName'); Make sure the name is unique though. If not, find a way to make it...

7 years ago | 0

| accepted

Answered
Error in port widths or dimensions.
The Outport block "Out1" in "PI Controller" is connected to a BusCreator (or Mux) block. It contains two signals. That might be ...

7 years ago | 0

Answered
cant find the mistake here
The mistake is that you need to insert this line as the first line inside your function. v=[];

7 years ago | 0

Answered
why does appear this error: "Unable to open file 'C:\Users\jonat\Desktop\Clean\~$2019-04-26 Clean.xlsx'?
The name "~$2019-04-26 Clean.xlsx" indicates it is a temporary file. Is the file opened or edited by another program or by the c...

7 years ago | 0

Answered
Finding approximate y values for corresponding x values in matlab
interp1(x,y,3.1,'nearest')

7 years ago | 2

| accepted

Answered
How to access used variables in a specific state in stateflow
Create and Access Charts Using the Stateflow API

7 years ago | 0

Answered
sldiagnostics counts subsystems which are not visible
When Simulink compiles or updates the model, it went through many steps. I have a guess on what "Pre-compile post-eval notifies"...

7 years ago | 0

Answered
Is Walter Roberson a real person, or is he some kind of Matlab AI robot?
Ha Ha Ha, a good question! I would say a robot, but I bet Walter Roberson would say otherwise.

7 years ago | 1

Answered
How to set datetime for every 9.9156 days?
t2= datetime(1994,1,1,0,0,0,'TimeZone','GMT+8'); t:days(9.9156):t2

7 years ago | 1

| accepted

Answered
How to get used Matlab Workspace variables within Simulink model
Simulink Data Dictionary has the capability. You can migrate your workspace variables to a Simulink Data Dictionary. When you do...

7 years ago | 0

Answered
How to make Simulink run the entire model just once?
Each MATLAB function block will be executed once for every simulation step. Inside the MATLAB function block, there could be loo...

7 years ago | 0

Answered
How can I unload an automatically generated .dll file?
try "clear functions"?

7 years ago | 0

Answered
How to dynamically construct a matrix of functions ?
I think you can make the matrix using M1=vertcat(blkdiag(JcX1,JcX2), blkdiag(JcX3,JcX4), ...) M2=blkdiag(vertcat(JfX1,JfX2),...

7 years ago | 1

Answered
Get signal name at inport of subsystem
The first case truely has the signal name. You can get it like below. In second case, you need to get the name of the Constant. ...

7 years ago | 2

| accepted

Answered
Textscan to convert ASCII file to mat file
You need to skip two headerlines not to specify 'Delimiter' as '\t' carefully specify the format to match the file. I got...

7 years ago | 0

Answered
Keeping plot titles in desired location
title_obj.Position; title_obj.Position=[You Value Specified Here]

7 years ago | 0

| accepted

Answered
How can I logically index 3 conditions in a loop
and(or(d(:,1)==3, d(:,1)==4),d(:,2)==1)

7 years ago | 2

| accepted

Answered
HI, is there any built in function in MATLAB to check, if all the elements in cell array or double array are same or not
something like this flag=numel(unique([fck1{:}]))==1

7 years ago | 1

| accepted

Answered
How can I which value that be used to calculate a function
You need to run min() twice A=magic(5); [MinInCol,RowIndex]=min(A); [MinValue,ColIndex]=min(MinInCol); Position=[RowIndex(Co...

7 years ago | 1

| accepted

Answered
Generate time sequence with 15 minutes step time
t1:minutes(15):t2

7 years ago | 1

| accepted

Answered
How do I link extern variables and stateflow input when using custom c code?
follow this demo model Including Custom C Code Functions and Structures

7 years ago | 0

Answered
How to bound discrete integrator outputs
When the saturation happends, it should not reset to zero. It should reset to "Value-2*pi". Don't enable "Limit output" at thi...

7 years ago | 1

| accepted

Load more