Risposto
MATLAB giving me a 16x1 complex double answer?
You are using floating point inputs, each of which is inexact. For example is 89.81 intended to represent exactly 8981/100 or is...

6 giorni fa | 0

Risposto
Matrix double and complex double
That algorithm would be for element-by-element multiplication. For * (matrix multiplication) you need to mentally transpose the ...

6 giorni fa | 0

Risposto
Offload figure graphic computations from NVIDIA to local intel GPU
https://superuser.com/questions/1657952/disabling-nvidia-gpu-for-routine-tasks shows how to change your graphics card preference...

6 giorni fa | 0

Risposto
vpa solving 5 equations with 5 unknowns, but result is an empty structure
When you are dealing with symbolic inequalities, you have two choices: You can convert them directly to symbolic equalities, so...

6 giorni fa | 0

Risposto
GLOBAL VARIABLE :HOW USE IT?
Global variables are only reachable within the current workspace. Consider the following code: first(); second(); third(); fun...

6 giorni fa | 2

Risposto
Solving the Maximum and Minimum Problems of Multivariate Functions
No. You have coded finite lower bounds and upper bounds for x3, and you have coded a single region for x1. However your problem ...

7 giorni fa | 0

Risposto
attaching callback function to a serialdev object.
Callbacks are not supported for serialdev() objects. Note that this serial port lives on the pi and is for connecting an extern...

7 giorni fa | 0

| accettato

Risposto
How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot?
The formal method is to use annotation However note that annotation() cannot use data coordinates, so it can be messy to place...

7 giorni fa | 1

| accettato

Risposto
I would like to shorten the code, but keep the same type and size of the variable N{t}{w}(i).
N = repmat({repmat({zeros(1,10)}, 1, 3)}, 1, 3)

7 giorni fa | 0

Risposto
New tab Sheet using fprintf function
No, that is not possible. csv files are pure text files, and do not have tab sheets. Putting data on other tabs is possible in ...

8 giorni fa | 0

Risposto
Will Dropbox new use of Apple file API make things difficult for me?
MATLAB's uigetfile() already uses native operating system file choosers, so if you have been using uigetfile() on MacOS you alre...

8 giorni fa | 0

Risposto
error on line 42 : gui_mainfcn(gui_State, varargin{:});
Change delete(instrfind({'Port'},{'COM3'})) clear a; global a; a = arduino(); to global a; if ~isempty(a); clear global a...

8 giorni fa | 0

Risposto
Code not showing any result or any error
Your code defines kepler_plot but never invokes it. But you have other problems as well. I had to guess what you were doing. e...

8 giorni fa | 0

Risposto
Requesting a demo code for calculating second-order statistics (contrast, correlation, energy, homogeneity, and entropy) for medical images.
Split the code up into two parts: read the medical images into memory arrays code that calculates second-order statistics on m...

8 giorni fa | 0

Risposto
Concatenating matrices unable to create a row jump
cruzzi = []; Numeric array. cruzzi{i} = [cruzzi imbinarize(tigger{i,o}, carrey)]; First cycle, cruzzi is the empty nu...

8 giorni fa | 0

Risposto
Parameter tunning using GA
You cannot fix that. You are calculating four costs each time, but ga() can only handle one cost at a time. ga() will never be a...

8 giorni fa | 0

| accettato

Risposto
how to solve this, Error using .* Arrays have incompatible sizes for this operation. Error in Elm (line 156) tempH_test=InputWeight.*TV.P;
The .* (element-by-element multiplication) operator can proceed in the case where: every dimension that is not 1 in either Inpu...

8 giorni fa | 0

Risposto
How to use subroutines inside subroutins in GUI functions?
A different one of your questions implies that you are using GUIDE, or hand-building your code -- that in particular you are not...

8 giorni fa | 0

Risposto
Is it possible to pass a variable throu a callback function?
Yes. In general see http://www.mathworks.com/help/matlab/math/parameterizing-functions.html However, in the special case of set...

8 giorni fa | 1

| accettato

Risposto
How to write a subfunction inside a GUI function?
Yes, it is possible. In the case of App Designer you might have to define the function in a separate .m file if it is not a cal...

8 giorni fa | 0

Risposto
How to create a protected file
Not really. You can embed a SoC kind of computer within a tamper-resistant covering that would be likely to break with all of...

9 giorni fa | 0

| accettato

Risposto
Universal Time to Local Time conversion
If LT is datetime() then you need to adjust the Format property of LT I recently encountered someone who was doing a similar ...

9 giorni fa | 0

| accettato

Risposto
Process .dat file, plot, scale, and put back into similar format
Your code says to scan the file for 8 floating point numbers with commas between them with a delimiter of tab. But your file con...

9 giorni fa | 0

Risposto
this code was sabotaged please correct it
The missing code for unified_friction_pipe is on page 100 of Managed Pressure Cementing Simulations of Pressure and Flow Dyna...

9 giorni fa | 0

Risposto
怎么用matab找到对某个概率密度函数从0开始积分对应积分结果为0.5的积分上限,
format long g f = @(x) exp(x).^2 - sin(x); %example function x0 = 0.8; UB = fsolve(@(ub) integral(f, 0, ub) - 0.5, x0) ...

9 giorni fa | 0

| accettato

Risposto
Index exceeds array dimensions. Index value 9 exceeds valid range [1-1] for array 'm2'.
m2((l1^2) MATLAB has no implied multiplication. That is a request to index m2

9 giorni fa | 1

Risposto
Error in data size using CIC filter in Simulink R2020b: The number of input rows must be a multiple of the decimation factor
You appear to be passing a 1 x 1 signal into decimation. Decimation works on a non-scalar. You probably need to buffer the sig...

10 giorni fa | 0

Risposto
How can I get the right image ratio when displaying an image behind a graph?
The rule is that the XData you provide will be used as the center of the pixels. You want to shift the boundaries by half of a p...

10 giorni fa | 0

Risposto
I am coding a kinetic equation by using ode dsolve but i got: Warning: Unable to find symbolic solution.
Your O3 is a function of t. You have O3^m where m is an unknown. You are not going to find a solver that is able to deal with ...

10 giorni fa | 0

Risposto
I have a problem with the angle function
Your angle(Ew) oscillates around 0 so quickly that unwrap() ends up just adding more and more full cycles to try to keep up. Eve...

10 giorni fa | 1

Carica altro