已回答
Matlab Gui. Retrieve the output of a function (external .m file) within a push button. Could anyone explain how to do it?
Whatever you have done so far is fine. Just that there needs to be a external_Function.m file with the function defined as [w,DP...

7 years 前 | 0

已回答
How to import excel file into my simulink model without communicating with workspace
If u can store in a mat file, u can use *From File* block in your model. Alternatively u can use m-functions But why do you ...

7 years 前 | 1

| 已接受

已回答
Detect change block is not working as expected
Normally when detecting changes in a float signal, we check if the absolute difference to previous value is greater than some co...

7 years 前 | 0

已回答
display pass if 95% of the value below one value
dataIn = rand(1,80); if (sum(dataIn>.35)/numel(dataIn)>.95) disp('PASS'); else disp('FAIL'); end

7 years 前 | 0

| 已接受

已回答
Help me powergui variable setting
Is the variable written to base workspace? A Simulink Model refers its configuration parameters from Base Workspace.

7 years 前 | 0

| 已接受

已回答
Import Mixed Data from Text Files
fid = fopen('mydata.txt'); C = textscan(fid, '%d(%f,%f,%f)'); fclose(fid);

7 years 前 | 0

已回答
String of GUIDE-gui-button does not change immediately with command set(handles...'String'...)
use drawnow http://in.mathworks.com/help/matlab/ref/drawnow.html

7 years 前 | 2

| 已接受

已回答
If-Else inside Stateflow Chart
In that case You have to implement a new output variable (output to Simulink). And to this output variable, you can assign the i...

7 years 前 | 0

| 已接受

已回答
If-Else inside Stateflow Chart
From the error, I think you are trying to assign value to an input signal example {signal_name = xyz}. This is not possible. ...

7 years 前 | 1

已回答
How to split a vector in to sub vectors?
v = [1:1:8812]; window_size = 20; iCount = size(v,2); iStartIDx = [1:window_size :iCount]; for iLoop=1:length(iSta...

7 years 前 | 0

已回答
define variable value in simulink model
Instead of a Gain, use a divide(product) block. First argument is the signal, Second will be from a data store read (the pair of...

7 years 前 | 0

已回答
what is mean by this
There are a number of nodes in your problem - denoted by "NumberOfNodes". xd, yd, E, R are properties of each of these nodes....

7 years 前 | 0

已回答
Can I Load/Combine Vectors Data
number_of_mat_files = 2; for iLoop=1:number_of_mat_files sMatFileName = ['file', num2str(iLoop), '.mat'];%construct ...

7 years 前 | 1

| 已接受

已回答
what is mean by this
S is an array of structures. xd is one of the members of the structure (type unknown). In the given line, member xd of the...

7 years 前 | 1

已回答
Designing bus signals with same names but different buses
<</matlabcentral/answers/uploaded_files/84541/2017-08-03%2018_11_32-untitled%20_.png>> You can directly connect the selected ...

7 years 前 | 0

已回答
How to find maximum value among R,G,B channels in the same indices?
A = imread('thank-you.jpg'); [iRows, iColumns, ~] = size(A); for iLoop1=1:iRows for iLoop2=1:iColumns ...

7 years 前 | 0

| 已接受

已回答
How to find maximum value among R,G,B channels in the same indices?
I dont know any direct way, but you can run a loop on the length and breadth of the image matrix to find the max of R, G, B at e...

7 years 前 | 0

已回答
Designing bus signals with same names but different buses
You should use bus selector to select the members you need and take it to subsystem with simple inports (non-bus).

7 years 前 | 1

已回答
run a function with 2 outputs multiple times
for iLoop=1:100 [t,X] = SISep(adj, beta, gamma, nmax, I0); tSim(iLoop)=t; XSim(iLoop)=X; end

7 years 前 | 1

| 已接受

已回答
How to add a timestamp to array in simulink?
1. If you want to run the model as a regular user, you can set the cache folder to some folde other than C:\Windows... Example: ...

7 years 前 | 0

| 已接受

已回答
Change font value of uitable headings in GUI
You should use HTML tags. ColumnNames = { .... '<html><center /><font face="verdana" size=3>Column Heading 1</font><...

7 years 前 | 0

| 已接受

已回答
How to be able to control reading text in matlab
fid = fopen('letterabc.txt'); tline = fgetl(fid); while ischar(tline) YesOrNo = input('continue Reading [y/n]') if...

7 years 前 | 0

已回答
Error when I run a .bat file
Is there any reason why you dont use !abc.bat or dos('abc.bat')

7 years 前 | 0

已回答
How to control reading text character by character
fid = fopen('letterabc.txt'); tline = fgetl(fid); while ischar(tline) YesOrNo = input('continue Reading [y/n]') ...

7 years 前 | 0

| 已接受

已回答
Is it possible to get block handles instead of port handles in get_param?
Port handles are the handles of the ports(the small > at the border of the subsystem). These are NOT the outports' block handles...

7 years 前 | 0

已回答
How can i write from txt files to any array
use textscan function http://in.mathworks.com/help/matlab/ref/textscan.html

7 years 前 | 0

| 已接受

已回答
Is there a way to count the number of signal paths from each inport to each outport?
You have to start from each outport, and then find the preceeding block. You can use 'PortHandles', or 'PortConnectivity' itera...

7 years 前 | 0

| 已接受

已回答
Access Summary report data of Simulink models
All model advisor apis are described here. https://in.mathworks.com/help/simulink/slref/simulink.modeladvisor.html

7 years 前 | 0

| 已接受

加载更多