Risposto

Save (Axes) As in GUI

Updated! Hi Abdullah, Based on your comment I updated the answer function pushbutton_SaveasImg_Callback(hObject, eventdata, h...

Save (Axes) As in GUI

Updated! Hi Abdullah, Based on your comment I updated the answer function pushbutton_SaveasImg_Callback(hObject, eventdata, h...

oltre 4 anni fa | 1

| accettato

Inviato

Interface between MATLAB App and Simulink

This file consists of necessary steps and settings to enable App Designer to control the inputs and displaying model values back...

oltre 4 anni fa | 27 download |

Risposto

set a pic in GUI

Updated based on Adam's comment! Thanks for your feedback. --------------------------------------------------------------------...

set a pic in GUI

Updated based on Adam's comment! Thanks for your feedback. --------------------------------------------------------------------...

oltre 4 anni fa | 1

| accettato

Risposto

Saving the plot after modifications in the GUI - Matlab

Hi Adam, In the below example, first you need to copy the UIAxes to the temporary figure. And then you can save it as *.png. f...

Saving the plot after modifications in the GUI - Matlab

Hi Adam, In the below example, first you need to copy the UIAxes to the temporary figure. And then you can save it as *.png. f...

oltre 4 anni fa | 0

| accettato

Risposto

Logical expression not working with loop and if statement

Hello Maxence Boels, this is due to the inner for loop, which is causing problem. for n =1, the inner loop changes its values f...

Logical expression not working with loop and if statement

Hello Maxence Boels, this is due to the inner for loop, which is causing problem. for n =1, the inner loop changes its values f...

oltre 4 anni fa | 0

| accettato

Risposto

Reading complex numbers from Excel

Step.1: Reading values from the excel sheet (see attachment). [num,txt,raw] = xlsread('imag_real.xlsx') Step.2: Apply a str2do...

Reading complex numbers from Excel

Step.1: Reading values from the excel sheet (see attachment). [num,txt,raw] = xlsread('imag_real.xlsx') Step.2: Apply a str2do...

oltre 4 anni fa | 0

| accettato

Domanda

How to check if external program/software is installed using App

I developed an App which simulates the Simulink model. This simulink model requires another external program/software which need...

oltre 4 anni fa | 1 risposta | 0

Risposto

Plotting on .fig file (in new window if possible)

Here is an example: close all; MySavedPlot = open('MySavedPlot.fig'); figure(MySavedPlot) hold on x = linspace(-2*pi,2*pi);...

Plotting on .fig file (in new window if possible)

Here is an example: close all; MySavedPlot = open('MySavedPlot.fig'); figure(MySavedPlot) hold on x = linspace(-2*pi,2*pi);...

quasi 5 anni fa | 0

Risposto

How to use pop-up menu to control table in GUIDE?

hi chia yu li, here you can find such GUI. thanks Ankit

How to use pop-up menu to control table in GUIDE?

hi chia yu li, here you can find such GUI. thanks Ankit

quasi 5 anni fa | 0

Risposto

Simulink modeling from the command line

you can use following commands: open_system({ 'model1name', 'model2name' }); set_param('model1name', 'StopTime', 'inf') set_p...

Simulink modeling from the command line

you can use following commands: open_system({ 'model1name', 'model2name' }); set_param('model1name', 'StopTime', 'inf') set_p...

quasi 5 anni fa | 0

Risposto

how can i solve this eigenvalue equation?

hi using eig command: https://de.mathworks.com/help/matlab/ref/eig.html a=[1 2;5 6]; b=[3 6;7 8]; [V,D] = eig(a,b); Are yo...

how can i solve this eigenvalue equation?

hi using eig command: https://de.mathworks.com/help/matlab/ref/eig.html a=[1 2;5 6]; b=[3 6;7 8]; [V,D] = eig(a,b); Are yo...

quasi 5 anni fa | 2

| accettato

Risposto

Column Format in UI Table

hey, you can set the format of your table as follows using 'ColumnFormat' property. Are you looking for something like this? C...

Column Format in UI Table

hey, you can set the format of your table as follows using 'ColumnFormat' property. Are you looking for something like this? C...

quasi 5 anni fa | 2

| accettato

Risposto

How to change the length of the lines inside the legend?

Hello Sandeep, check this interesting file in FEX: https://de.mathworks.com/matlabcentral/fileexchange/58914-resizelegend-varar...

How to change the length of the lines inside the legend?

Hello Sandeep, check this interesting file in FEX: https://de.mathworks.com/matlabcentral/fileexchange/58914-resizelegend-varar...

quasi 5 anni fa | 0

Risposto

How to change the order on vertical axis on a figure ?

hi, you could try this x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); scatter(x,y) set(gca,'YDir','reverse')

How to change the order on vertical axis on a figure ?

hi, you could try this x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); scatter(x,y) set(gca,'YDir','reverse')

quasi 5 anni fa | 0

| accettato

Risposto

how to delete cells in a cell array, such that it has the same length as one of my other arrays

There are different ways in which you can delete an element from your array Case 1: If you want to delete an specific element ...

how to delete cells in a cell array, such that it has the same length as one of my other arrays

There are different ways in which you can delete an element from your array Case 1: If you want to delete an specific element ...

quasi 5 anni fa | 0

Risposto

From spreadsheet in simulink ....How to deal with inf problem

hello, there is problem in your spreadsheet. I would like to confirm that if your time values are correct. You just need to ...

From spreadsheet in simulink ....How to deal with inf problem

hello, there is problem in your spreadsheet. I would like to confirm that if your time values are correct. You just need to ...

quasi 5 anni fa | 0

| accettato

Risposto

Assistance with contour plot?

Hello Claire, You should use contour to get the contour labels (Contours with Labels) Just have a look here: How to label the...

Assistance with contour plot?

Hello Claire, You should use contour to get the contour labels (Contours with Labels) Just have a look here: How to label the...

quasi 5 anni fa | 0

Risposto

Opening XLSX file and setting the variable type to double

Hello Konstantin, I have a question why don't you change the excel sheet value from NULL to 0? Could you please give a try to...

Opening XLSX file and setting the variable type to double

Hello Konstantin, I have a question why don't you change the excel sheet value from NULL to 0? Could you please give a try to...

quasi 5 anni fa | 1

Risposto

Scaling color with selected axis data

Hello Aikaterini, Please try this out: % parameters x= [0:1:30]' ; y= linspace(0.1,10,length(x)) ; % function if (x <= ma...

Scaling color with selected axis data

Hello Aikaterini, Please try this out: % parameters x= [0:1:30]' ; y= linspace(0.1,10,length(x)) ; % function if (x <= ma...

quasi 5 anni fa | 1

Risposto

app designer linked to simulink

Hello Andrew, here is such an example: Simulink Model control via App Designer Check my answer in below link for how to read ...

app designer linked to simulink

Hello Andrew, here is such an example: Simulink Model control via App Designer Check my answer in below link for how to read ...

quasi 5 anni fa | 6

| accettato

Risposto

How to read file in matlab GUI

Please don't forget to pre-allocate the loop variables According to your GUI and given input conditions, line(i)==6 and line(i)...

How to read file in matlab GUI

Please don't forget to pre-allocate the loop variables According to your GUI and given input conditions, line(i)==6 and line(i)...

quasi 5 anni fa | 0

Risposto

Remove the border lines.

hello, you need to set the edgecolor property to none. x1=[1.3, 1.76]; y1=[271, 241]; [xx1, yy1] = meshgrid(x1, y1); z1=[3....

Remove the border lines.

hello, you need to set the edgecolor property to none. x1=[1.3, 1.76]; y1=[271, 241]; [xx1, yy1] = meshgrid(x1, y1); z1=[3....

quasi 5 anni fa | 2

Risposto

How to Add selected values of Listbox in MATLAB GUI?

This is not the best way but a working solution! function listbox1_Callback(hObject, eventdata, handles) contents= cellstr(ge...

How to Add selected values of Listbox in MATLAB GUI?

This is not the best way but a working solution! function listbox1_Callback(hObject, eventdata, handles) contents= cellstr(ge...

quasi 5 anni fa | 0

| accettato

Risposto

Graphing .m file returning blank figure

Hello Andre, There is problem in your code. You are not storing y values. function yout=euler1(t0,y0,tfinal,h,f) y=y0; yout...

Graphing .m file returning blank figure

Hello Andre, There is problem in your code. You are not storing y values. function yout=euler1(t0,y0,tfinal,h,f) y=y0; yout...

quasi 5 anni fa | 0

Risposto

How do I remove leading characters from a string?

Hello Pruth, One possibility is to use extractBetween command. newStr = extractBetween(str,startPos,endPos) a = extractBetwee...

How do I remove leading characters from a string?

Hello Pruth, One possibility is to use extractBetween command. newStr = extractBetween(str,startPos,endPos) a = extractBetwee...

quasi 5 anni fa | 1

Risposto

Can we write plots in Excel

Hello Prakhar, Before asking question it is always beneficial to google it or check in MATLAB Central File Exchange. Please re...

Can we write plots in Excel

Hello Prakhar, Before asking question it is always beneficial to google it or check in MATLAB Central File Exchange. Please re...

quasi 5 anni fa | 0

| accettato

Risposto

How can i access elements of popup menu and use it in Push Button callbacks?

Hello Anurag, You can use either of the following solutions: Solution.1: As you are assigning the values to the workspace you ...

How can i access elements of popup menu and use it in Push Button callbacks?

Hello Anurag, You can use either of the following solutions: Solution.1: As you are assigning the values to the workspace you ...

quasi 5 anni fa | 0

| accettato

Risposto

Use of Position property of figures

Hi Luca, using this command you can get the default figure position using get command for e.g. >> f = figure(1);plot(0);a = g...

Use of Position property of figures

Hi Luca, using this command you can get the default figure position using get command for e.g. >> f = figure(1);plot(0);a = g...

quasi 5 anni fa | 0

Risposto

App Designer to control a Simulink Model and read back model data

Update 21.11.2019: Please check my submission in the below link: https://de.mathworks.com/matlabcentral/fileexchange/73613-int...

App Designer to control a Simulink Model and read back model data

Update 21.11.2019: Please check my submission in the below link: https://de.mathworks.com/matlabcentral/fileexchange/73613-int...

quasi 5 anni fa | 1