Réponse apportée
How to know which m-file run?
1. Check from command History of matlab. OR 2. In all that files, open and put command "disp('filename')". so that it wil...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Help finding location of variable names
Hello Luis, Consider you have *LFHD.txt* file having 50,000 lines of code. Keep it in your current directory and run follo...

plus de 9 ans il y a | 0

Réponse apportée
Problem importing large text file (.txt) of data
Hello Marcus, Try using fopen() command instead of importdata() clear all; count = 1; fid = fopen('ascii_file.t...

plus de 9 ans il y a | 0

Réponse apportée
input and excel sheet and output a different one
Hello Michel, Create a GUI for the same. Add one Push Button, So that when you click on that Pushbutton, it will import the ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Open an excel sheet after clicking a pushbutton in GUI
Hello Michel, Consider you have GUI " *Test.m*" and " *Test.fig*" files, along with your template " *ABC.xlsx*" file. ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Save part of an array
Hello Sonarine, Try for this.. A = [1:10000]; for i = 1:length(A)/20 B(i,:) = A((i-1)*20+1:i*20); end to check t...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
To create an array non rectangular, and replace -9.99e+08 by NaN
Hello Rapha alpha, Try for this code.. clear all; contador=1; fid = fopen('ascii_file.txt'); tline = fgetl(...

plus de 9 ans il y a | 0

Réponse apportée
After concatenation it is still not concatenated
Hello Anton, Try for this: LSB2 = [LSB1(w,1); LSB1(w,2); LSB1(w,3); LSB1(w,4)]

plus de 9 ans il y a | 0

Réponse apportée
Display default value in the edit box in MATLAB GUI
Hello Pankaja, You can do this, by creating new function in your code file (i.e. in .m file of your GUI). 1. Simply create...

plus de 9 ans il y a | 1

Réponse apportée
I want to display the results shown in command window by clicking push button
Hi Mania, In order to achieve your requirement, you have to do following changes: 1. In your function file (in which t...

plus de 9 ans il y a | 0

Réponse apportée
How plot Sin Wave in Axes of GUI MATLAB
Hello Widya, Your code is correct. I tried running same code and it is working fine and the result is as shown in below snaps...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Hello i am new to use matlab I have tried to creat a GUI but i faced a problem of understanding to code for example I want the user to enter two values through the edit box then clicking a push button it will calculate result.
Hello Gebreabzgi Pawlos, Its very simple. In your code, the variables "a", "b", "c" are acting as a local. You creating v...

plus de 9 ans il y a | 0

Réponse apportée
Can i set all text boxes to their default value by using only one command
Hello Mania, You can achieve your requirement, by creating new function in your code file (i.e. in .m file of your GUI). ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to use value entered in one edit text in another one?
Hi Kh wa, The problem in your tool is because of line "por=handles.bb+handles.cc;" under aa_callback. See, when you are ty...

plus de 9 ans il y a | 0

Réponse apportée
How to determine if pushbutton/callback is pressed?
Hi Jan, Try for this: function pushbutton1_Callback(hObject, eventdata, handles) handles.First = 1; handles.Second = ...

plus de 9 ans il y a | 1

Réponse apportée
how to name matfile from variable name
Hi Kev111, In your code, simply replace the line save('presetName'); with save(char(presetName)); and try..

plus de 9 ans il y a | 0

Réponse apportée
I want to display the results shown in command window by clicking push button.
Hi Mania, In order to achieve your requirement, you have to do following changes: 1. In your function file (in which the r...

plus de 9 ans il y a | 0

Réponse apportée
Problem in MATLAB GUI. Invalid or deleted object..
According to me, it seems like the function 'st_variogram_pooled(data_train)' is calculating the scale in numeric format, so the...

plus de 9 ans il y a | 0

Réponse apportée
Calling an m file from GUI, and using data in workspace
Hi Aniket, I understand your problem with handling GUI. First tell me, is your 'VVS_Function_15A.m' file is having fun...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
i have to read a text file which contains 50 rows and 2 colums... 1 have to assign the 1st column into one variable and 2nd column to another variable.. what i have to do?
Data = importdata('<txt filename>'); Column1 = Data(:,1); Column2 = Data(:,2); You can also create your own script by p...

presque 12 ans il y a | 1

Question


What is mean by "Simulink.logging Info object could not be located because its class can not be found"?
Hello.. I have two versions of Matlab with me.. one is R2007b and another one is R2010b.. so sometime while loading the .mdl ...

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

1

réponse

Question


Any reason, Why Matlab R2007b support fixdt(1,16) OR fixdt(0,16) but not Matlab R2010b?
Hello.. I was working on one of the fixed-point model on R2007b, which was having some of the data-objetcs with fixdt(0,8) an...

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

0

réponse

Réponse apportée
How to get the source directory from command window?
The resolution is.. >>bdroot >>filename = strcat(bdroot, '.mdl') >>get_param(gcs, 'filename') Thanks.. :)

presque 13 ans il y a | 0

| A accepté

Question


How to get the source directory from command window?
Hello friends, I have one simulink model opened in my matlab. I know the source directory of that model (.mdl file) and it is...

presque 13 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
ModelWorkpace disappear under model explorer on R2010bSP1
Hello.. I got resolution for this issue. gcb (block) dont have the parameter called systembound, So insteadof gcb I should...

presque 13 ans il y a | 0

| A accepté

Question


What is the command to set "Window reuse = Reuse"?
File Menu >> Preferences >> Simulink >> Window Reuse How we can set this option to 'Reuse' from command window?

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


ModelWorkpace disappear under model explorer on R2010bSP1
Hello, I am facing this issue on Matlab R2010bSP1. For my model When I am running script which is having one cammand called "...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


How Can I set stateflow editor to FitToView using set_param() command which we normally do pressing spacebar???
Hello, I was creating script in which I need to include the command to set all subsystem and stateflow in fit in view format ...

environ 13 ans il y a | 1 réponse | 0

1

réponse