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

etwa 7 Jahre vor | 0

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

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 7 Jahre vor | 1

| akzeptiert

Beantwortet
How to define a variable as an integer that's equal to or greater than zero?
rem(struct_idx,4)==1

etwa 7 Jahre vor | 0

Beantwortet
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...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
How can I transfer specific values to a new variable?
z(y==1)?

etwa 7 Jahre vor | 0

Beantwortet
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 ...

etwa 7 Jahre vor | 0

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

etwa 7 Jahre vor | 0

Beantwortet
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...

etwa 7 Jahre vor | 0

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

etwa 7 Jahre vor | 2

| akzeptiert

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

etwa 7 Jahre vor | 0

Beantwortet
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"...

etwa 7 Jahre vor | 0

Beantwortet
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.

etwa 7 Jahre vor | 1

Beantwortet
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

etwa 7 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 7 Jahre vor | 0

Beantwortet
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...

etwa 7 Jahre vor | 0

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

etwa 7 Jahre vor | 0

Beantwortet
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),...

etwa 7 Jahre vor | 1

Beantwortet
Execute functions only when there is a specific State transition in Stateflow
Use Transition Action

etwa 7 Jahre vor | 0

Beantwortet
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. ...

etwa 7 Jahre vor | 2

| akzeptiert

Beantwortet
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...

etwa 7 Jahre vor | 0

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

etwa 7 Jahre vor | 0

| akzeptiert

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

etwa 7 Jahre vor | 2

| akzeptiert

Beantwortet
Remove rows from a matrix by considering repeated elements of the first column.
unique(A,'rows')

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
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

etwa 7 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 7 Jahre vor | 1

| akzeptiert

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

etwa 7 Jahre vor | 1

| akzeptiert

Beantwortet
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

etwa 7 Jahre vor | 0

Beantwortet
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...

etwa 7 Jahre vor | 1

| akzeptiert

Mehr laden