# Jan

It is easier to solve a problem than to guess, what the problem is. Questions about FileExchange submissions are welcome - get my address from the code. I do not answer mails concerning questions in the forum.

**Statistics**

RANK**4**

of 257.855

REPUTATION**38.073**

CONTRIBUTIONS

**80** Questions

**14.424** Answers

ANSWER ACCEPTANCE **
77.5%
**

VOTES RECEIVED**8.868**

RANK**71** of 17.770

REPUTATION**12.184**

AVERAGE RATING**4.90**

CONTRIBUTIONS**52** Files

DOWNLOADS **374**

ALL TIME DOWNLOADS**108217**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

how to use read variable

T = readtable('Population_data.xlsx'); population = T{:, 3};

circa un'ora ago | 0

How can I create a plot with two different yaxis, with one of them inside the figure?

Simply create 2 axes: FigH = figure; Axes1H = axes(FigH, 'Position', [0.1300 0.1100 0.5 0.8150], ... 'Box', 'on'); ...

circa 2 ore ago | 0

Best way to initialize different parameters based on the machine in which I run the code

Matlab's setpref and getpref command is very useful also to store machine specific parameters. A drawback is, that these settin...

circa 3 ore ago | 0

i want to Write a user-defined function that calculate total marks, out of 100,The course should include homework, midterms, and final exam and i dont know why didint work

if (95 >= Gall) Read this loud: "If 95 is greater than Gall". No, you want the other way around: if Gall >= 95 The ...

circa 3 ore ago | 0

How to filter the following vector from multiple vectors?

Maybe: V = MM(:, abs(MM(2, :)) < 32); [~, index] = min(V(1, :)); W = V(:, index)

circa 22 ore ago | 0

Within a script, can I close or redirect a Windows File Explorer window opened with 'winopen'?

You could open a tree view to the folder inside Matlab: [mtree, container] = uitree('v0', 'Root','C:\') % Still working? This...

1 giorno ago | 0

Two complex matrix can not to multiply by each other.

Try this: https://www.mathworks.com/matlabcentral/answers/1584284-the-problem-of-conv2-with-blas-loading-error

1 giorno ago | 0

Compare two string arrays with a if loop

A simpler formulation of your question might be: Datenbank = [ ... "Na,Pb" "Abellaite" ""; ... "...

1 giorno ago | 0

| accepted

Powell's Algorithm not obeying Upper Bound (UB)

Yes, this is the documented behavior: % Lb, Ub: lower and upper bound vectors to plot (default = x0*(1+/-2)) Lb and Ub are u...

1 giorno ago | 0

Function 'subsindex' is not defined for values of class 'cell'

What is the purpose of handles.edit1.String(TIP1) Here TIP1 = {'ITS A GREAT CAR'} is used as index of the variable replied by ...

2 giorni ago | 0

When I run a specific MEX file I get the message: "Invalid MEX file: The specified module could not be found". The dependency_walker utility seems not to work.

Open the DependencyWalker with a double click. Then select the mex file manually. This should show the report after some seconds...

2 giorni ago | 0

Why am I receiving the error message "Array indices must be positive integers or logical values"?

ch_i(exp(-(z/ch_i))) ch_o(exp(-(z/ch_o))-1) Here exp(-(z/ch_i)) and exp(-(z/ch_o))-1 are used as indices of the variables ch_i...

2 giorni ago | 0

| accepted

I want to make an iteration for all arras of my vector.

n=ones(size(f_s)); ready = false; while ~ready nOld = n; ... Your code as above ready = all((n - nOld) < 0.01) ...

3 giorni ago | 0

| accepted

Invalid RHS for assignment to a categorical array.

Group_Train1 is a [274x1] double vector. u contains its unique elements. result is an empty categorical. The error message mean...

4 giorni ago | 1

| accepted

Error compiling third party plugin

"I navigated with Matlab to the libeep folder" - the provided command is not Matlab. Did you install XCode? Then open a command...

4 giorni ago | 0

How to read audio file from file?

The error message tells clearly, that there is no file called 'D:\BİTİRME PROJESİ\TIMIT\data\TRAIN\DR2\FAEM0.SA1.wav' There i...

4 giorni ago | 0

How to correct the code?

for k = 1:size(lambda) fun_lambda_value(k) = subs(f,[x1,x2],[x_1(i)+lambda(k,1)*S(1),x_2(i)+lambda(k,1)*S(2)]) end If lamd...

4 giorni ago | 1

| accepted

How do I add numbers into a sequence

x = [1;10;30]; y = x.' + (0:9).'; y = y(:)

4 giorni ago | 0

| accepted

PARFOR in real applications

After trying many examples from many questions in the forum, I've found: https://www.mathworks.com/matlabcentral/answers/172017...

4 giorni ago | 0

Perform specific operations on arrays without "for" loop

You do not want less for loops, but more: Accesing the RAM is slower than using the CPU cache: function [chi,zeta,M,O,Delta,rho...

4 giorni ago | 2

| accepted

I would like to know how I can find out how long a certain event lasts.

data = [ ... 0.019 0 0.04 0.45371 0.057 0 0.076 0.15127 0.092 0.22037 0.107 0.2317 0.1...

5 giorni ago | 0

| accepted

what is this eror and what does it mean and how can i solve it ?

it says here that ('loop index 'i' is changed inside of a FOR loop) Yes, and this is the clear explanation already. Do not chan...

6 giorni ago | 0

How can I add an extra dimension to make the array 2D to 3D?

Reduce the clutter: name = ''; if idx < 10 name = strcat('0',int2str(idx),'.mat'); load(name); else name = str...

7 giorni ago | 1

| accepted

Trying to use central difference scheme to solve logistic equation

Your code is no valid Matlab code. I suggest to learn the basics from: https://www.mathworks.com/learn/tutorials/matlab-onramp.h...

7 giorni ago | 0

| accepted

using matlab compiler to read a .mat file at run time

Consider, that pwd is fragile. Any subfunction might change the current directory. See here for a method to get the location o...

7 giorni ago | 0

How can I write a fraction inside string?

What exactly is the problem? I've simply copied the string provided in the question, inserted a linebreak \n to let the comnplet...

7 giorni ago | 0

| accepted

where can i get original Matlab code of an algorithm published in a research paper?

Ask the author of the paper. Sometimes they provide the code. Don't be surprised, if the code does not run on your computer. I'...

7 giorni ago | 0

How to set even spacing between preset tick marks

What do you exactly want as output? Beside the possibility to do this in Matlab, think twice if the person can understand the o...

7 giorni ago | 1

| accepted

Out of memory error message when attempting to plot in 3D

function dxdt = g(t,f) dxdt=g(t,f) ... end This function calls itself recursively. Of course this let Matlab crash. What is ...

7 giorni ago | 0

| accepted

Un smoothing set of saved data

No. Smoothing destroys the signal of the noise. You cannot reconstruct it.

7 giorni ago | 0

| accepted