Réponse apportée
How to convert string to numeric variable in if statement
for i =1:length(Team) if Team(i)== str2num(C1) Team(i) = 1 elseif Team(i)==str2num(C2) Team(...

presque 12 ans il y a | 0

Réponse apportée
how to read a column named by some header in excel by using matlab?
strings = {'AOA','CAS','IAS','ALT'}; [header,data] = xlsread('myxls.xls','Sheet','Range'); idx = find(strcmp(header,'AOA...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
how to create array for these values i got?
change the statement f(i) = min(A(i,j)); to f(tmp,i) = min(A(i,j));

presque 12 ans il y a | 0

Réponse apportée
How do you write a finction for TwoSums
arr = input('enter an array of numbers: ') [s1 s2] = TwoSums(arr) Function: function [sum1,sum2] = TwoSums(arr) ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How do you write a function for the area of a circle?
Function: function [area] = CircleArea(radius) area = pi * radius^2; script: rad1 = input('Enter Radius of Cir...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
how do you write function divisible(n)?
function [Res] = divisible(n) if(rem(n,3)==0 && rem(n,5) == 0) Res = 1; else Res = 0; end

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How to change the variable name in the loop
for to i=1:2 str = ['D:\Pénzügyek\Market\Trading System\Neural networks\FORECASTING MODELL\Modells\' num2str(i) '.xlsx,...

presque 12 ans il y a | 0

Réponse apportée
how can I plot graphs of function with various input arguments?
Hi, use the below script to plot the graph. I think this is what you are looking for, for v = 1:1200 Y(v,1) = mfunc...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How to output multiple figures?
for i = 1:10 f = figure(); hold on; plot(A); plot(B); text(''); fileName = ['image_' num...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Can i obtain data without stopping the simulation? I need to calculate average espectrum simulink
yes, please see http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html

presque 12 ans il y a | 0

| A accepté

Réponse apportée
array from matrix equations
Vo = [2 3 4 5]; Vn - X/Y; for i = 1:4 Va(i) = (alpha * Vn(i)) + ((1-alpha) * Vo(i)); end

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Use of Arrays in Simulink
have u tried using an assignment block

plus de 12 ans il y a | 0

Réponse apportée
Running this problem an error occurs: ??? Error using ==> rem Not enough input arguments.
there are syntax errors in the code. there is no end for the if else statement and no end for the second for loop clear al...

plus de 12 ans il y a | 0

Réponse apportée
How can I save a Simulink Parameter and load it an older version of Matlab?
Simulink parameters saved in 2012b version cannot be used in the lower versions of matlab as the architecture of the mat file is...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Matching only parts of two cell arrays
for i = 1:length(A) TF = findstr(char(B(1)),char(A(i))) if(TF == 1) disp(i) end end

plus de 12 ans il y a | 0

Réponse apportée
How can I generalize this for loop?
sum = 0; for I = 1:r sum = sum + d(I); t(i) = sum/total; end

plus de 12 ans il y a | 0

Réponse apportée
How to display an error message with Try/catch?
try % code in try part catch errordlg('error') end

plus de 12 ans il y a | 0

Réponse apportée
Is there any limitation of line of code in S-function creation?
There is no limitation

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Problem with file text size in bytes
use the command a= dir('complete path of the file') example: F:\Matlab\text.txt It gives a structure with bytes a...

plus de 12 ans il y a | 0

Question


what is the difference between simulink objects and mpt objects
i`m trying to generate code for a model using embedded coder. when I wanted to define objects for parameters and signals there ...

plus de 12 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
How can I load variable data from some MATFfile into table?
matFiles = dir('*.mat'); table = []; for i = 1:length(matFiles) eval('load(matFiles(i))'); table{i,1} = num2str(i); table{i...

plus de 12 ans il y a | 0

Réponse apportée
How to change the parameters of a synchronous generator model while the simulation in running condition??
if you want to change the value of a constant set_param(gcb,'Value',<value>)

plus de 12 ans il y a | 1

Question


Display updated values in GUI during simulink model runtime
Hi, I want to display the updated values of signals in GUI while Simulink model is running at the back end. how is it possibl...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Listbox, how to populate it?
this is how a list box can be populated str{1} = 'hello'; str{2} = 'world'; set(handles.listbox1,'String',str);

plus de 12 ans il y a | 0

Réponse apportée
How to store string into an array?
try this Minu y= {'0D05','0D06','0D10'}; if u want to update the array during run time y{i} = {str};

plus de 12 ans il y a | 3

Réponse apportée
How to set simulink model parameter from GUI during simulation?
In the callback function 'function FK_button_Callback(hObject, eventdata, handles)' write the following code assignin('base',...

plus de 12 ans il y a | 0

Réponse apportée
how to solve algebraic loop problem??
add a unit delay block in the feedback path

plus de 12 ans il y a | 1

Réponse apportée
How to create matrix with array under certain conditions?
B = [ones(1,3)*A(1); A; ones(1,3)*A(1)]

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Simulink if statement block
use the if block in ports & subsystems of simulink library browser. Number of inputs can be changed in the if block properties....

plus de 12 ans il y a | 1

Réponse apportée
how to create multi sine wave input in simulink ?
add three sine wave blocks with different phases and add them to a mux block. this will create a multi sine wave input signal

plus de 12 ans il y a | 0

Charger plus