Answered

Simulink: MATLAB Function Doesn't Recognise Variables

Of course it doesn't. That is intended behaviour. Functions have their own workspace which is distinct from base workspace (or m...

Simulink: MATLAB Function Doesn't Recognise Variables

Of course it doesn't. That is intended behaviour. Functions have their own workspace which is distinct from base workspace (or m...

4 månader ago | 0

| accepted

Question

Is MQTT functionality implemented for 3rd party applications?

Is MQTT functionality designed to work only with Thingspeak or any 3rd party application in general? Which toolbox(es) is the fu...

4 månader ago | 1 answer | 0

Answered

Concatenate correlation matrices/tables across subjects to one 3D matrix

cat(3,m1,m2,m3,m4...) concatenates m1,m2,... along third dimension.

Concatenate correlation matrices/tables across subjects to one 3D matrix

cat(3,m1,m2,m3,m4...) concatenates m1,m2,... along third dimension.

4 månader ago | 0

| accepted

Answered

LSTM in App Designer: predictAndUpdateState Error

The error doens't necessarily mean it cannot work with double type parameters. I may also be that it cannot find the function. M...

LSTM in App Designer: predictAndUpdateState Error

The error doens't necessarily mean it cannot work with double type parameters. I may also be that it cannot find the function. M...

4 månader ago | 0

| accepted

Answered

Removing outliers from Control System response?

Check this out. https://in.mathworks.com/matlabcentral/fileexchange/101475-peirce-s-criterion-for-outlier-rejection

Removing outliers from Control System response?

Check this out. https://in.mathworks.com/matlabcentral/fileexchange/101475-peirce-s-criterion-for-outlier-rejection

4 månader ago | 0

Answered

How to make a Gui checkbox work

In the toggleHistory callback, use an if condition to check the value of the checkbox. if sender.Value == 1 disp showHisto...

How to make a Gui checkbox work

In the toggleHistory callback, use an if condition to check the value of the checkbox. if sender.Value == 1 disp showHisto...

4 månader ago | 0

| accepted

Answered

How to use the zplane command in app designer

I dont think zplane() has a syntax to pass in handle to target axes. Instead plot zeros and poles separately using plot function...

How to use the zplane command in app designer

I dont think zplane() has a syntax to pass in handle to target axes. Instead plot zeros and poles separately using plot function...

4 månader ago | 0

| accepted

Question

2022b for apple M1

A 2022b beta trial of Matlab running natively on M1 macs was released for public and it closed some time in August. 2022b is no...

4 månader ago | 1 answer | 0

Answered

Display variable outside ODE45 function

Since Rx and Ry are only time-dependent, why no do plot(time,cos(time), time,sin(2*time), time,cos(time)+sin(2*time))

Display variable outside ODE45 function

Since Rx and Ry are only time-dependent, why no do plot(time,cos(time), time,sin(2*time), time,cos(time)+sin(2*time))

11 månader ago | 0

Answered

How to switch uitab using commands?

Use SelectedTab property of uitabgroup. E.g. f = figure; tabgp = uitabgroup(f,'Position',[.05 .05 .3 .8]); tabA = uitab(tab...

How to switch uitab using commands?

Use SelectedTab property of uitabgroup. E.g. f = figure; tabgp = uitabgroup(f,'Position',[.05 .05 .3 .8]); tabA = uitab(tab...

11 månader ago | 0

| accepted

Answered

Asking the user to enter the extension of the files and load them in workspace

Not sure what you mean by "load similar files". To "load" or import file(s) you first need to specify the file(s). If you want u...

Asking the user to enter the extension of the files and load them in workspace

Not sure what you mean by "load similar files". To "load" or import file(s) you first need to specify the file(s). If you want u...

11 månader ago | 1

Answered

Is MATLAB supported on Apple Silicon Macs?

Matlab for AppleSilicon beta is out for testing. https://in.mathworks.com/support/apple-silicon-r2022a-beta.html

Is MATLAB supported on Apple Silicon Macs?

Matlab for AppleSilicon beta is out for testing. https://in.mathworks.com/support/apple-silicon-r2022a-beta.html

11 månader ago | 1

Question

ppval and polyval giving different results

I created a piecewise polynomial using mkpp. But when I evaluate a set of points I get incorrect results using ppval, although p...

11 månader ago | 2 answers | 0

Answered

app designer dynamic button number

Yes, in at least a couple of ways. First is to use the uicontrol() in the selectionchanged callback of DropConcentration to crea...

app designer dynamic button number

Yes, in at least a couple of ways. First is to use the uicontrol() in the selectionchanged callback of DropConcentration to crea...

mer än ett år ago | 0

| accepted

Question

Unable to run a deployed file in linux: error while loading shared libraries: libmwlaunchermain.so

I have created a deployable XYZ but unable to launch it even after configuring LD_LIBRARY_PATH. I keep getting the error error...

mer än ett år ago | 0 answers | 0

Answered

surf plot of f(x,y). With gridlines, but more sparse than default

s=surf(x,y,z) Now use s.Parent.XTick and set it to a vector. E.g. s.Parent.XTick = 0:2:10; will make the X-grid 2units with...

surf plot of f(x,y). With gridlines, but more sparse than default

s=surf(x,y,z) Now use s.Parent.XTick and set it to a vector. E.g. s.Parent.XTick = 0:2:10; will make the X-grid 2units with...

mer än ett år ago | 0

Answered

Create single array from multiple arrays in struct

Presuming the error you got is "Dimensions of arrays being concatenated are not consistent.", all data in column vectors may be ...

Create single array from multiple arrays in struct

Presuming the error you got is "Dimensions of arrays being concatenated are not consistent.", all data in column vectors may be ...

mer än ett år ago | 1

| accepted

Answered

how to use "for" loop to save variables to an array?

Of course, it will show the last result only since you are overwriting the areaone variable in every iteration of the loop. You ...

how to use "for" loop to save variables to an array?

Of course, it will show the last result only since you are overwriting the areaone variable in every iteration of the loop. You ...

mer än ett år ago | 0

Answered

Save figure name as string

saveas(hfig,[directoryPath, str, '.jpeg']) directoryPath is the string with ending in fileseperator / or \ depending on your OS...

Save figure name as string

saveas(hfig,[directoryPath, str, '.jpeg']) directoryPath is the string with ending in fileseperator / or \ depending on your OS...

mer än ett år ago | 0

| accepted

Answered

Is MATLAB supported on Apple Silicon Macs?

Depends on version. MW has said 2020b v3 and later will work on M1 through Rosetta. There might still be issues to iron out. Lat...

Is MATLAB supported on Apple Silicon Macs?

Depends on version. MW has said 2020b v3 and later will work on M1 through Rosetta. There might still be issues to iron out. Lat...

mer än ett år ago | 0

Answered

How to declare input variables as a vector?

Of course it can be a vector, a matrix or a variable of some class.

How to declare input variables as a vector?

Of course it can be a vector, a matrix or a variable of some class.

mer än ett år ago | 0

| accepted

Answered

How do I write an expression that refers to only the elements that have odd-number/odd-number index subscripts in a vector?

Is this what you are looking for? myvec(1:2:end)

How do I write an expression that refers to only the elements that have odd-number/odd-number index subscripts in a vector?

Is this what you are looking for? myvec(1:2:end)

mer än ett år ago | 1

Answered

rearrange an equation in simulink

No known blocks/methods to pull off such a thing in Simulink. Did you try symbolic math?

rearrange an equation in simulink

No known blocks/methods to pull off such a thing in Simulink. Did you try symbolic math?

mer än ett år ago | 0

Answered

pause loop with "if" statement?

You must give it a range of time period rather than a unique time point since the execution doesn't guarantee the particular lin...

pause loop with "if" statement?

You must give it a range of time period rather than a unique time point since the execution doesn't guarantee the particular lin...

mer än ett år ago | 0

| accepted

Question

Cannot find authentication imaqmex_mexw64.auth

A compiled version of UI with images and camera feed works mostly fine. But very occasionally, like once in a month, the program...

nästan 2 år ago | 0 answers | 0

Answered

cant open .fig anymore

Try clearing your workspace and then launching the GUI. Looks like you have a variable with the same name as the GUI.

cant open .fig anymore

Try clearing your workspace and then launching the GUI. Looks like you have a variable with the same name as the GUI.

nästan 2 år ago | 0

Question

Doesn't Matlab's built-in Tesseract OCR work on calculator font?

I have a simple image showing timer and ocr() is failing to recognise the text. Any idea why? Thanks.

nästan 2 år ago | 0 answers | 0

Answered

Is MATLAB supported on Apple Silicon Macs?

UPDATE 1: Text comparison tool in R2019b not working on M1 mac. Got the following error popup.

Is MATLAB supported on Apple Silicon Macs?

UPDATE 1: Text comparison tool in R2019b not working on M1 mac. Got the following error popup.

ungefär 2 år ago | 1

Answered

Is MATLAB supported on Apple Silicon Macs?

I cannot believe the results (below) I'm seeing on my MBP-M1 with R2019b. R2018a showed slower benchmarks as expected for Matlab...

Is MATLAB supported on Apple Silicon Macs?

I cannot believe the results (below) I'm seeing on my MBP-M1 with R2019b. R2018a showed slower benchmarks as expected for Matlab...

mer än 2 år ago | 0

Answered

Macbook air M1 - will 2018 or 2019 matlab releases work?

2016b and 2018a work on M1. Terribly slow graphics and the applications consume a lot of energy even sitting idle (as reported b...

Macbook air M1 - will 2018 or 2019 matlab releases work?

2016b and 2018a work on M1. Terribly slow graphics and the applications consume a lot of energy even sitting idle (as reported b...

mer än 2 år ago | 0