Traffic Engineer

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

13 days ago

Submitted

Merge PDF-Documents

Merges multiple pdf documents into one pdf document

1 month ago | 32 downloads |

Answered

Merging pdf without ghostscript

Four years later ... I contributed a tiny function to FEX to merge multiple pdfs without third party tools: mergePdfs - File Ex...

Merging pdf without ghostscript

Four years later ... I contributed a tiny function to FEX to merge multiple pdfs without third party tools: mergePdfs - File Ex...

1 month ago | 1

Answered

Multiple plots to one pdf

Save each figure to one pdf-Document (using print, exportgraphics, ...) and try out my new FEX submission to merge the pdf-docu...

Multiple plots to one pdf

Save each figure to one pdf-Document (using print, exportgraphics, ...) and try out my new FEX submission to merge the pdf-docu...

1 month ago | 0

Answered

SIMILAR COMMANDS FOR CREATING .TXT FILES

You can use dlmwrite to write an array into a text file and specify the delimiter or use fprintf to have more control about the ...

SIMILAR COMMANDS FOR CREATING .TXT FILES

You can use dlmwrite to write an array into a text file and specify the delimiter or use fprintf to have more control about the ...

11 months ago | 0

Answered

Save a .FIG as .JPG (syntax error?)

To save a jpg with saveas() you have to give a proper figure handle (at least gcf) as first argument and change '.jpg' to 'jpeg'...

Save a .FIG as .JPG (syntax error?)

To save a jpg with saveas() you have to give a proper figure handle (at least gcf) as first argument and change '.jpg' to 'jpeg'...

11 months ago | 1

| accepted

Submitted

RTP_SystemIdentification

App to create simulink systems based on series of first/second order numerators/denomitaors

1 year ago | 6 downloads |

Answered

deleting a part of a column - date to date??

clearvars close all clc % lets create the date column (I only use 1 hour with increment of 1 minute), but this should works...

deleting a part of a column - date to date??

clearvars close all clc % lets create the date column (I only use 1 hour with increment of 1 minute), but this should works...

1 year ago | 0

| accepted

Answered

How to create a confusion matrix.

Lets use the cifar10 demo included in Matlab for your question clearvars close all clc load('Cifar10Labels.mat','trueLabel...

How to create a confusion matrix.

Lets use the cifar10 demo included in Matlab for your question clearvars close all clc load('Cifar10Labels.mat','trueLabel...

1 year ago | 0

Answered

How to detect the black line from a captured image?

If you print it out and make a photo, then black is not pure black any more but some kind of grayish or with some kind of color ...

How to detect the black line from a captured image?

If you print it out and make a photo, then black is not pure black any more but some kind of grayish or with some kind of color ...

1 year ago | 0

Answered

plot Datetime on x Axes

There are mainly 2 possibilities You can use datetick() to format your x axis ticks to date or time values You can define your...

plot Datetime on x Axes

There are mainly 2 possibilities You can use datetick() to format your x axis ticks to date or time values You can define your...

1 year ago | 0

Answered

Run a script for all subfolders

You can use the asterisk (*) as wildcard to generate a file pattern and the dir command to get a struct of all the matching file...

Run a script for all subfolders

You can use the asterisk (*) as wildcard to generate a file pattern and the dir command to get a struct of all the matching file...

1 year ago | 1

| accepted

Answered

How to write this matlab code?

In Matlab, you could write something like B = rand(8760, 30); % matrix B of size 8760x30 with random values P = rand(30, 1); %...

How to write this matlab code?

In Matlab, you could write something like B = rand(8760, 30); % matrix B of size 8760x30 with random values P = rand(30, 1); %...

1 year ago | 0

Answered

Help!!! How to browse text file data to another function

It seems that you access the value of the button, which is not what you intend to do. What you probably want to do is to share d...

Help!!! How to browse text file data to another function

It seems that you access the value of the button, which is not what you intend to do. What you probably want to do is to share d...

1 year ago | 0

Answered

i want to generate a sequence of n numbers

You can create sequences with the colon operator (:), for exapmle v = [4:2:100]; creates v = [4, 6, 8, ... , 100] with values ...

i want to generate a sequence of n numbers

You can create sequences with the colon operator (:), for exapmle v = [4:2:100]; creates v = [4, 6, 8, ... , 100] with values ...

1 year ago | 0

| accepted

Answered

Plots combining into one

In line 32 of your code there is a (second) "hold on" which acts on the active axes. If you want to have two figures with one ax...

Plots combining into one

In line 32 of your code there is a (second) "hold on" which acts on the active axes. If you want to have two figures with one ax...

1 year ago | 0

| accepted

Answered

Extracting Data from Tall Arrays using Logical Indexing

I think you mentioned everything that you need for this task. Try this as a starting point: clearvars, close all clc % some...

Extracting Data from Tall Arrays using Logical Indexing

I think you mentioned everything that you need for this task. Try this as a starting point: clearvars, close all clc % some...

1 year ago | 0

Answered

what does this line mean

ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Her...

what does this line mean

ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Her...

1 year ago | 0

Answered

I have a set of nonlinear equations (run by rk4 method). How can I compute the Jacobian for those?

Assume you have the set of nonlinear eqations and the vector of independent variables defined in Matlab, then you can use the j...

I have a set of nonlinear equations (run by rk4 method). How can I compute the Jacobian for those?

Assume you have the set of nonlinear eqations and the vector of independent variables defined in Matlab, then you can use the j...

1 year ago | 0

| accepted

Answered

Write value to gauge in MATLAB design app

In the inspector, look for the label of the gauge. Originally it is labeled as "Gauge". You also see this on the code page insid...

Write value to gauge in MATLAB design app

In the inspector, look for the label of the gauge. Originally it is labeled as "Gauge". You also see this on the code page insid...

1 year ago | 0

| accepted

Answered

Get every possible combination of an array

This could be a starting point: clearvars, close all clc arr = [-1 1 -1 1 1 1 1 1 -1]; num_arr_elements = numel(arr); ...

Get every possible combination of an array

This could be a starting point: clearvars, close all clc arr = [-1 1 -1 1 1 1 1 1 -1]; num_arr_elements = numel(arr); ...

1 year ago | 0

| accepted

Answered

how process sequence of the images in a loop without overwriting

Have a look at your first for loop. Here you are generating a char called fileName which is overwritten in every loop count. fur...

how process sequence of the images in a loop without overwriting

Have a look at your first for loop. Here you are generating a char called fileName which is overwritten in every loop count. fur...

1 year ago | 0

Answered

Deleted on request by my prof. Sorry

I assume that In your code line 28 it should be t(j) and t(j-1) instead of t(n) and t(n-1) respectively. Then your code at least...

Deleted on request by my prof. Sorry

I assume that In your code line 28 it should be t(j) and t(j-1) instead of t(n) and t(n-1) respectively. Then your code at least...

1 year ago | 0

| accepted

Answered

Data loading in MATLAB

Hi, have a look at uigetfile and uiopen which open a file selection dialog box. This should solve your issues. Regards, Benni...

Data loading in MATLAB

Hi, have a look at uigetfile and uiopen which open a file selection dialog box. This should solve your issues. Regards, Benni...

1 year ago | 0

| accepted

Answered

How to plot data from different folders

You can get the file information (name, folder, date, ...) of files within subfolders using the dir command and wildcards. e.g. ...

How to plot data from different folders

You can get the file information (name, folder, date, ...) of files within subfolders using the dir command and wildcards. e.g. ...

3 years ago | 1

| accepted

Answered

How to use a double index with a restriction under a for loop along with indicator function to calculate the occurrence of a given state

Sorry, i do not understand your condition and explanation for "if abs (x(i)- x(i-j))= j then S(x)=1". x is a vector. Do you want...

How to use a double index with a restriction under a for loop along with indicator function to calculate the occurrence of a given state

Sorry, i do not understand your condition and explanation for "if abs (x(i)- x(i-j))= j then S(x)=1". x is a vector. Do you want...

3 years ago | 0

Answered

Z must be a matrix, not a scalar or vector

You calculate Z (or Q2) using variables that you do not provide us. so it is not possible to give an adequate answer. Is Q2 a ma...

Z must be a matrix, not a scalar or vector

You calculate Z (or Q2) using variables that you do not provide us. so it is not possible to give an adequate answer. Is Q2 a ma...

3 years ago | 0

Answered

Moving average on window of latest inputs with Exponential Weighting method

One possibility is to use the discrete filter block with denominater = [1] and Numerator are the exponential weights. If you do ...

Moving average on window of latest inputs with Exponential Weighting method

One possibility is to use the discrete filter block with denominater = [1] and Numerator are the exponential weights. If you do ...

3 years ago | 0

Answered

how i can use nntool with a scipt

Use nnstart instead of nntool ("nntool is no longer recommended"). Within nnstart you can choose your tool (nftool, nprtool, ...

how i can use nntool with a scipt

Use nnstart instead of nntool ("nntool is no longer recommended"). Within nnstart you can choose your tool (nftool, nprtool, ...

3 years ago | 0