Answered

Cannot CD to C Error

Does that directory exist? C:\Users\Anthony\Desktop\220 Lab\Intro To check exist('C:\Users\Anthony\Desktop\220 Lab\...

Cannot CD to C Error

Does that directory exist? C:\Users\Anthony\Desktop\220 Lab\Intro To check exist('C:\Users\Anthony\Desktop\220 Lab\...

4 years ago | 1

| accepted

Answered

Question on speed of for loop and repmat/repelem 'vectorization'

I don't get what you are trying to compare, as the output "A" is different. Placements of tic/toc are also unfair as accumarray ...

Question on speed of for loop and repmat/repelem 'vectorization'

I don't get what you are trying to compare, as the output "A" is different. Placements of tic/toc are also unfair as accumarray ...

4 years ago | 0

Answered

How to delete 'mat 'files

DataPath = 'C:\Blah\User\Blah'; delete(fullfile(DataPath, '*.mat'))

How to delete 'mat 'files

DataPath = 'C:\Blah\User\Blah'; delete(fullfile(DataPath, '*.mat'))

4 years ago | 0

| accepted

Answered

Publish to PDF - Figures are pixelated/blurry

New Answer: Hm, I couldn't find an option to change that resolution. Looked at their Matlab codes |publish.m| which brought m...

Publish to PDF - Figures are pixelated/blurry

New Answer: Hm, I couldn't find an option to change that resolution. Looked at their Matlab codes |publish.m| which brought m...

4 years ago | 1

Answered

Problem writing images when GUI and Figure are open at the same time

Always specify which axes you are drawing to. Also, use print instead of saveas to get the desired resolution. figure_handl...

Problem writing images when GUI and Figure are open at the same time

Always specify which axes you are drawing to. Also, use print instead of saveas to get the desired resolution. figure_handl...

4 years ago | 1

| accepted

Answered

Each time i run my simulation i get the error attached below. Please help

Are you using |cd|, change directory, anywhere in your code to go to that Program File folder? What is your current working dire...

Each time i run my simulation i get the error attached below. Please help

Are you using |cd|, change directory, anywhere in your code to go to that Program File folder? What is your current working dire...

4 years ago | 0

| accepted

Answered

How to display an image in UI Figure on app designer?

Try this: imshow(a, 'parent', app.UIAxes); But, you'll run into issues with having all this x, y, title of axes still sh...

How to display an image in UI Figure on app designer?

Try this: imshow(a, 'parent', app.UIAxes); But, you'll run into issues with having all this x, y, title of axes still sh...

4 years ago | 2

| accepted

Answered

Select specific values inside a cell

%Just making a demo cell array A = cell(4,6); for j = 1:numel(A) A{j} = randi(100, 1, 31); end %Use for...

Select specific values inside a cell

%Just making a demo cell array A = cell(4,6); for j = 1:numel(A) A{j} = randi(100, 1, 31); end %Use for...

4 years ago | 2

| accepted

Answered

"parfor" skips or fail with filtfilt function

Looks like your object |HdLOW| is not being passed to the parfor correctly. The output of |design| seems to be a System Obje...

"parfor" skips or fail with filtfilt function

Looks like your object |HdLOW| is not being passed to the parfor correctly. The output of |design| seems to be a System Obje...

4 years ago | 0

| accepted

Answered

Problem using circles as marker type when linewidth > 0.5 (default)... using Matlab R2018a

Try this: set(gcf, 'renderer', 'painters') If that works, set the default too: set(0, 'DefaultFigureRenderer', 'p...

Problem using circles as marker type when linewidth > 0.5 (default)... using Matlab R2018a

Try this: set(gcf, 'renderer', 'painters') If that works, set the default too: set(0, 'DefaultFigureRenderer', 'p...

4 years ago | 2

| accepted

Answered

Two Loops versus One Combined Performance Time?

_"Please don't say try it, and see it for yourself. "_ Try it and see for yourself. _"I am looking for sort of a theoretic...

Two Loops versus One Combined Performance Time?

_"Please don't say try it, and see it for yourself. "_ Try it and see for yourself. _"I am looking for sort of a theoretic...

4 years ago | 0

Answered

Running some commands in the Command prompt automatically

Use |system| to run command line codes from matlab. <https://www.mathworks.com/help/matlab/ref/system.html> If you want to...

Running some commands in the Command prompt automatically

Use |system| to run command line codes from matlab. <https://www.mathworks.com/help/matlab/ref/system.html> If you want to...

4 years ago | 0

Answered

There is no GUI in Matlab 2018a just AppDesigner?

Are you sure there's no GUIDE? I don't see any log saying they removed it. <https://www.mathworks.com/help/matlab/release-notes....

There is no GUI in Matlab 2018a just AppDesigner?

Are you sure there's no GUIDE? I don't see any log saying they removed it. <https://www.mathworks.com/help/matlab/release-notes....

4 years ago | 0

| accepted

Answered

deploytool.exe comes with Unable to load Java Runtime Environment.

Instead of |deploytool|, use |mcc|. <https://www.mathworks.com/help/compiler/mcc.html> Also, since you do not have java runt...

deploytool.exe comes with Unable to load Java Runtime Environment.

Instead of |deploytool|, use |mcc|. <https://www.mathworks.com/help/compiler/mcc.html> Also, since you do not have java runt...

4 years ago | 0

Answered

Converting complex cells into simple cell arrays

array{1,1}={0.7,0.3}; array{1,2}={1,0.6,0.5}; array{1,3}= {1,0.3}; newArray = cellfun(@(x) cell2mat(x), array, 'un', 0...

Converting complex cells into simple cell arrays

array{1,1}={0.7,0.3}; array{1,2}={1,0.6,0.5}; array{1,3}= {1,0.3}; newArray = cellfun(@(x) cell2mat(x), array, 'un', 0...

4 years ago | 0

| accepted

Answered

How do I create a string for values

You are getting NaN because you are trying to store a string value in a matrix that can only hold numeric values. See example 1 ...

How do I create a string for values

You are getting NaN because you are trying to store a string value in a matrix that can only hold numeric values. See example 1 ...

4 years ago | 0

Answered

how to convert cell in matrix

A = repmat({rand(100, 1)}, 1, 4); %your 1x4 cell containin 100x1 matrix per each cell B = [A{:}] %your 100x4 matrix

how to convert cell in matrix

A = repmat({rand(100, 1)}, 1, 4); %your 1x4 cell containin 100x1 matrix per each cell B = [A{:}] %your 100x4 matrix

4 years ago | 0

| accepted

Answered

Replace with regexprep in text file

The |")-/"| term in the pattern search is actually interpretted as all characters from |")"| *to* |"/"|. So it's the following: ...

Replace with regexprep in text file

The |")-/"| term in the pattern search is actually interpretted as all characters from |")"| *to* |"/"|. So it's the following: ...

4 years ago | 0

| accepted

Answered

Wich Compiler(s) Matlab uses?

<https://www.mathworks.com/products/matlab/matlab-execution-engine.html>

Wich Compiler(s) Matlab uses?

<https://www.mathworks.com/products/matlab/matlab-execution-engine.html>

4 years ago | 0

Answered

EVAL do not display OUTPUT

_"I am using eval function but"_ Don't use |eval|. It's one of those functions that's there but not to be used unless absolut...

EVAL do not display OUTPUT

_"I am using eval function but"_ Don't use |eval|. It's one of those functions that's there but not to be used unless absolut...

4 years ago | 0

| accepted

Answered

Getting access of an output variable from a function or script which is saved in a different folder.

Use |path| to define functions that you want to use, but are in different folders. <https://www.mathworks.com/help/matlab/re...

Getting access of an output variable from a function or script which is saved in a different folder.

Use |path| to define functions that you want to use, but are in different folders. <https://www.mathworks.com/help/matlab/re...

4 years ago | 0

Answered

When compiling a standalone application, how can I include the class VideoReader?

Change this: readerobj = VideoReader(VideoName); to this: readerobj = VideoReader(fullfile(VideoPath, VideoName)); ...

When compiling a standalone application, how can I include the class VideoReader?

Change this: readerobj = VideoReader(VideoName); to this: readerobj = VideoReader(fullfile(VideoPath, VideoName)); ...

4 years ago | 1

| accepted

Answered

How can I cancel my license and give me a refound?

Contact Sales: 508-647-7000 (USA phone number) 8:30AMâ€“5:30PM EST Corporate Headquarters 1 Apple Hill Drive Na...

How can I cancel my license and give me a refound?

Contact Sales: 508-647-7000 (USA phone number) 8:30AMâ€“5:30PM EST Corporate Headquarters 1 Apple Hill Drive Na...

4 years ago | 0

Answered

Matlab, loop for. Problem.

DO NOT label your variables Nf1, Nf2, .... Var1, Var2, ... read this: <https://www.mathworks.com/matlabcentral/answers/30...

Matlab, loop for. Problem.

DO NOT label your variables Nf1, Nf2, .... Var1, Var2, ... read this: <https://www.mathworks.com/matlabcentral/answers/30...

4 years ago | 1

| accepted

Answered

Help using guidata in a script

If you pass handles as input and also output, you don't need |guidata| Use guidata only to store/retrieve the GUI's data. ...

Help using guidata in a script

If you pass handles as input and also output, you don't need |guidata| Use guidata only to store/retrieve the GUI's data. ...

4 years ago | 0

| accepted

Answered

While loop iterating further than expected?

Rounding error. Try something like this: m1=1; while m1 < 4.80 m1=round(m1+0.1, 2); %To prevent m1 from drif...

While loop iterating further than expected?

Rounding error. Try something like this: m1=1; while m1 < 4.80 m1=round(m1+0.1, 2); %To prevent m1 from drif...

4 years ago | 0

| accepted

Answered

How to count the number of elements of several arrays inside an array?

T = [18 63 34 25 77 90 46 27 19]; C = cell(3); for k = 1:length(T) C{k} = cell(T(k), 5); end D = cellfu...

How to count the number of elements of several arrays inside an array?

T = [18 63 34 25 77 90 46 27 19]; C = cell(3); for k = 1:length(T) C{k} = cell(T(k), 5); end D = cellfu...

4 years ago | 0

Answered

How to use an existing matlab code to convert it into GUI using App Designer in MATLAB?

Try this tutorial in your matlab. >> appdesigner.internal.application.openTutorial('BasicCoding') More information here...

How to use an existing matlab code to convert it into GUI using App Designer in MATLAB?

Try this tutorial in your matlab. >> appdesigner.internal.application.openTutorial('BasicCoding') More information here...

4 years ago | 0

Answered

How to create a vector repeating different numbers with specific amounts?

Is this homework? Hint: use |repelem| <https://www.mathworks.com/help/matlab/ref/repelem.html>

How to create a vector repeating different numbers with specific amounts?

Is this homework? Hint: use |repelem| <https://www.mathworks.com/help/matlab/ref/repelem.html>

4 years ago | 0

Answered

parfor problem with fmincon body

Here's a work around, though I don't like the fact that this copies S1... How big is S1? If it's small, maybe not a huge issue. ...

parfor problem with fmincon body

Here's a work around, though I don't like the fact that this copies S1... How big is S1? If it's small, maybe not a huge issue. ...

4 years ago | 1