Answered

Numbers in command window printed 10000 times smaller

My recommendation would be that you go into Preferences -> Command Window -> Text Display, and choose numeric display "long g",...

Numbers in command window printed 10000 times smaller

My recommendation would be that you go into Preferences -> Command Window -> Text Display, and choose numeric display "long g",...

3 hours ago | 0

Answered

more then one tag on object in figure

No. The Tag field of an object must be a character vector or a scalar string. The only way to store multiple tags would be to en...

more then one tag on object in figure

No. The Tag field of an object must be a character vector or a scalar string. The only way to store multiple tags would be to en...

4 hours ago | 0

Answered

How to check whether the function invertible or not?

If all you are given is a function handle, and you are not permitted to examine the source code, then it is not always possible ...

How to check whether the function invertible or not?

If all you are given is a function handle, and you are not permitted to examine the source code, then it is not always possible ...

4 hours ago | 0

Answered

Execution time of functions used in anonymous function creation

What is the best way to force immediate execution of a function that is being used as part of an anoymous function? stackAnalye...

Execution time of functions used in anonymous function creation

What is the best way to force immediate execution of a function that is being used as part of an anoymous function? stackAnalye...

4 hours ago | 0

Answered

What is wrong with my Gompertz Equation?

V=p(1)*(p(2)/p(1)).^exp(-p(3)*t); Notice the .^ instead of ^ . Your t is a vector, and the ^ operator is the matrix power oper...

What is wrong with my Gompertz Equation?

V=p(1)*(p(2)/p(1)).^exp(-p(3)*t); Notice the .^ instead of ^ . Your t is a vector, and the ^ operator is the matrix power oper...

5 hours ago | 0

Answered

Error using mex Unknown file extension ' '. Matlab Ubuntu

mex does not accept directory names as individual arguments: it thinks you are specifying files to be compiled and then complain...

Error using mex Unknown file extension ' '. Matlab Ubuntu

mex does not accept directory names as individual arguments: it thinks you are specifying files to be compiled and then complain...

5 hours ago | 0

Answered

Resize the images without deforming them

Resizing images always introduces distortions. In some cases the distortions are acceptable. In other cases, the distortions ar...

Resize the images without deforming them

Resizing images always introduces distortions. In some cases the distortions are acceptable. In other cases, the distortions ar...

5 hours ago | 1

Answered

Is there any ways to find all elements' rows and cols number at once?

[~, column_numbers] = find(Array) [~, column_numbers] = find(Array == value) %or any relationship Note: in the specific case...

Is there any ways to find all elements' rows and cols number at once?

[~, column_numbers] = find(Array) [~, column_numbers] = find(Array == value) %or any relationship Note: in the specific case...

6 hours ago | 0

Answered

Input's control to check if is a function

First you should test isa(f, 'function_handle') That will eliminate everything except function handles. To specifically narro...

Input's control to check if is a function

First you should test isa(f, 'function_handle') That will eliminate everything except function handles. To specifically narro...

8 hours ago | 0

| accepted

Answered

Can not get exact exppresion due to cos function using Matlab symbolic toolbox

Irrelevant. cos(-x) = cos(x) so cos(a*f(x)) = cos(a*(-f(x)))

Can not get exact exppresion due to cos function using Matlab symbolic toolbox

Irrelevant. cos(-x) = cos(x) so cos(a*f(x)) = cos(a*(-f(x)))

8 hours ago | 0

| accepted

Answered

Display Numbers in UITABLE

If you are using uitable with "traditional" figures, figure(), then set the ColumnFormat property to {'shortg', 'shortg'} https...

Display Numbers in UITABLE

If you are using uitable with "traditional" figures, figure(), then set the ColumnFormat property to {'shortg', 'shortg'} https...

8 hours ago | 0

| accepted

Answered

Hi, I have written a code using the pdepe solver, but i get nothing when i run. Only my variables show in the workspace. Any help please

Correct. Your code clears variables and clears the screen. Then it defines 6 variables. Then it defines several functions. ...

Hi, I have written a code using the pdepe solver, but i get nothing when i run. Only my variables show in the workspace. Any help please

Correct. Your code clears variables and clears the screen. Then it defines 6 variables. Then it defines several functions. ...

9 hours ago | 0

| accepted

Answered

How to Get a script to end if a certain input is entered

if hms1 == 0 || hms2 == 0 flag = false; else intervalAddition(hms1, hms2); disp(hms1); disp(hms...

How to Get a script to end if a certain input is entered

if hms1 == 0 || hms2 == 0 flag = false; else intervalAddition(hms1, hms2); disp(hms1); disp(hms...

9 hours ago | 0

| accepted

Answered

Which function can I use instead of fsolve to solve a system of nonlinear equations with a global optimisation?

First of all, mathematical theory tells us that there exist functions where knowing the value of the function at one location gi...

Which function can I use instead of fsolve to solve a system of nonlinear equations with a global optimisation?

First of all, mathematical theory tells us that there exist functions where knowing the value of the function at one location gi...

10 hours ago | 0

Answered

Interpolation of scattered earthquake data

[xi,yi] = meshgrid(119:1:120, -3.2:1:-2.2); >> [min(x),max(x),min(y),max(y)] ans = 119.18147 119.609587 -3.132489 -2.3924...

Interpolation of scattered earthquake data

[xi,yi] = meshgrid(119:1:120, -3.2:1:-2.2); >> [min(x),max(x),min(y),max(y)] ans = 119.18147 119.609587 -3.132489 -2.3924...

11 hours ago | 0

Answered

Read file with non-uniform lines?

Named tokens, I said. Do not extract the lines ahead of time. FileText = fileread(YourFileName); Ctokens = regexp(FileText, ...

Read file with non-uniform lines?

Named tokens, I said. Do not extract the lines ahead of time. FileText = fileread(YourFileName); Ctokens = regexp(FileText, ...

11 hours ago | 0

Answered

Error: Unable to perform assignment because the left and right sides have a different number of elements.

Okay, so your problem is that your x is not the orientation you expect. When you index a vector of values at a vector of indic...

Error: Unable to perform assignment because the left and right sides have a different number of elements.

Okay, so your problem is that your x is not the orientation you expect. When you index a vector of values at a vector of indic...

11 hours ago | 0

Answered

Expansion in a Fourier Series

cos(n*pi)=(-1)^n that is an assignment statement. n is a symbolic variable. The only time that can have NAME(SYMBOLIC_EXPRE...

Expansion in a Fourier Series

cos(n*pi)=(-1)^n that is an assignment statement. n is a symbolic variable. The only time that can have NAME(SYMBOLIC_EXPRE...

14 hours ago | 0

Answered

how to write in matlab (x = 0<=x<=pi/8

syms x assume(0<=x & x<= sym(pi)/8) maybe. Or perhaps x=0; x<=x<=pi/8 which is pretty unlikely to be useful i...

how to write in matlab (x = 0<=x<=pi/8

syms x assume(0<=x & x<= sym(pi)/8) maybe. Or perhaps x=0; x<=x<=pi/8 which is pretty unlikely to be useful i...

16 hours ago | 0

Answered

Getting a "When simulating the response to a specific input signal, the input data U must be a matrix with as many rows as samples in the time vector T, and as many columns as input channels" error

t = 0:0.05:10; That has 201 entries. When you pass that vector of 201 entries into the time slot of lsim() then your state tabl...

Getting a "When simulating the response to a specific input signal, the input data U must be a matrix with as many rows as samples in the time vector T, and as many columns as input channels" error

t = 0:0.05:10; That has 201 entries. When you pass that vector of 201 entries into the time slot of lsim() then your state tabl...

21 hours ago | 0

Answered

How can I format cell inputs when using writematrix?

writematrix() cannot do any formatting; neither can writecell() or writetable(). To do formatting in .xls and .xlsx you need to...

How can I format cell inputs when using writematrix?

writematrix() cannot do any formatting; neither can writecell() or writetable(). To do formatting in .xls and .xlsx you need to...

21 hours ago | 0

Answered

In Simulink, is it possible to send data to workspace in real-time using the 'ToWorkspace' block?

Use a data store. https://www.mathworks.com/help/simulink/ug/model-global-data-using-data-stores.html

In Simulink, is it possible to send data to workspace in real-time using the 'ToWorkspace' block?

Use a data store. https://www.mathworks.com/help/simulink/ug/model-global-data-using-data-stores.html

21 hours ago | 0

Answered

tabulate cell2table

Your C variable in your table is probably already stored the way you want. It is the variable browser that is displaying separat...

tabulate cell2table

Your C variable in your table is probably already stored the way you want. It is the variable browser that is displaying separat...

21 hours ago | 0

| accepted

Answered

issue with integral3

integral2 and integral3 *always* pass in vectors or matrices to be evaluated at. integral() passes in a vector to be evaluate...

issue with integral3

integral2 and integral3 *always* pass in vectors or matrices to be evaluated at. integral() passes in a vector to be evaluate...

22 hours ago | 0

Answered

Reading from and writing to Google Drive

https://www.mathworks.com/matlabcentral/answers/436564-how-can-i-read-image-from-my-google-drive-process-it-and-sent-the-output-...

Reading from and writing to Google Drive

https://www.mathworks.com/matlabcentral/answers/436564-how-can-i-read-image-from-my-google-drive-process-it-and-sent-the-output-...

22 hours ago | 0

Answered

find text in text file

fileread and regexp() 'split' using pattern '\r?\n' on that to get lines. Now regexp() that cell array of character vectors givi...

find text in text file

fileread and regexp() 'split' using pattern '\r?\n' on that to get lines. Now regexp() that cell array of character vectors givi...

1 day ago | 0

Answered

Uiimage function suddenly stop working

https://www.mathworks.com/help/matlab/ref/uiimage.html needs r2019a

Uiimage function suddenly stop working

https://www.mathworks.com/help/matlab/ref/uiimage.html needs r2019a

1 day ago | 0

| accepted

Answered

Closest Points between two datasets without using pdist2

A=[5 6; 1 2; 3 4 1 8]; B=[3 0; 2 1; 4 1; 3 5; 1 2]; P = permute(sum((A-permute(B,[...

Closest Points between two datasets without using pdist2

A=[5 6; 1 2; 3 4 1 8]; B=[3 0; 2 1; 4 1; 3 5; 1 2]; P = permute(sum((A-permute(B,[...

1 day ago | 0

| accepted

Answered

nntool and training issues.

Click on View and then dismiss what pops up. Afterwards you will be able to edit all layers.

nntool and training issues.

Click on View and then dismiss what pops up. Afterwards you will be able to edit all layers.

1 day ago | 0

| accepted

Answered

The degree of function is unknown

This is proving to be a challenge to implement in the general case. So far I have code that automatically reduces multiples of...

The degree of function is unknown

This is proving to be a challenge to implement in the general case. So far I have code that automatically reduces multiples of...

1 day ago | 0