Answered
where is the mistake in my programing?
No comments. That would be an automatic Fail for university assignments.

4 years ago | 0

| accepted

Answered
fastest way to create an array with 1 and 0 with a given probability
C code. preallocate the logical output. Call a https://en.m.wikipedia.org/wiki/Mersenne_Twister function getting a 32 bit intege...

4 years ago | 0

Answered
App designer: serialport blocks assignin?
You are mistaken. The result of assignin() happen immediately, before the next operation. What does not happen immediately is...

4 years ago | 0

Answered
Plot duration vertical line
See xline() and yline()

4 years ago | 0

| accepted

Answered
Setting Zero to a specific color in 3D surface plot
y = data(2:end,1) ; x = data(1,2:end) ; Z = data(2:end,2:end) ; C = sign(Z); warp(x, y, Z, C) caxis([-1 1]) ...

4 years ago | 1

| accepted

Answered
hi there i want to get the values of A1,A2,A2,Q1,Q2,Q3 , i have six equations and six initial conditions as Xo, Vo kindly suggest me solution
for i = 1:1:3 x{i} = U(i,1)*A1*cos(w2(1,1)*t + Q1) + U(i,2)*A2*cos(w2(2,2)*t + Q2) +U(i,3)*A3*cos(w2(3,3)*t + Q3); ...

4 years ago | 0

| accepted

Answered
Invalid expression.Unable to resolve the name
in your r2019b release add the readable option 'PreserveVariableNames', true and use t.('BLF File Name') Note that Preserv...

4 years ago | 0

| accepted

Answered
I'm getting this error as shown below
function [Xkr] = DFT(xn) N = length(xn); %frame size Xk = complex(zeros(1,N)); %array size xn Xkr = zeros(1,N); ...

4 years ago | 0

Answered
How to read excel data include specific word? cell?
It is not possible to read rows selectively, other than by consecutive position. You will need to do something such as mask = ...

4 years ago | 0

Answered
How can I normalize one input for Patch across a subplot?
Use coordinates -inf and +inf . Then you can copyobj . Then in the copied object you can use max( min(YCoordinates, YUpperBoun...

4 years ago | 0

| accepted

Answered
Periodic input to ODE solver
No, that violates the mathematics that the solver uses. You need to stop the function every time there is a discontinuity and re...

4 years ago | 1

Answered
Constructing class objects before the parfor loop
It is valid to construct objects and use them in parfor loops. However, the mechanism used is that the objects are effectivel...

4 years ago | 0

| accepted

Answered
convert Char to string type
string(data)

4 years ago | 1

| accepted

Answered
How to get elapsed time of a code in matlab ?
<https://www.mathworks.com/matlabcentral/fileexchange/22161-waitbar-with-time-estimation>

4 years ago | 0

Answered
insert values of one table into another table if 1
temp(table1{:,1}) = table2{:, 1}; Then array2table(temp) and provide the appropriate variable name

4 years ago | 0

| accepted

Answered
Error integrating when the function handle is an integral: "Limits of integration must be scalars"
"However, I don't see why there is a problem if y,z will be evaluated as scalars" But they will not be. integral always passe...

4 years ago | 0

| accepted

Answered
Using different X-axis in trapz
No, there is no built-in tool for that . Have you considered applying a rotation and translation ? makehgtform is convenient ...

4 years ago | 0

| accepted

Answered
I have a .bin file (having only 0's and 1's). And I want to consider 2 bits of the data from the file at a time in an iterative manner till all of the digits are read.
twobits = fread(fid, [1 2], 'uchar'); This will not be efficient. Unless you have reason to expect that you might run out o...

4 years ago | 0

Answered
Error in the simultaneous use of contourf and geolimits
use contourm() with 'Fill' option perhaps contourf() is just contour() with fill, not a different computation

4 years ago | 0

| accepted

Answered
Computing the determinant of a block matrix
Just round-off error. You are calculating two different order of operations and that affects the results . If you use M = sym...

4 years ago | 1

Answered
How to covert .fis to .c
https://www.mathworks.com/help/fuzzy/getfiscodegenerationdata.html convert the fis to a structure . save the structure . In n...

4 years ago | 1

Answered
Implement below logic in Simulink, Add Two Input Signals in the Function and return that value to the function caller.
First allocate space for the result using zeros() and size of one of the inputs Then assign the + of the two inputs to that s...

4 years ago | 1

Answered
Add top x axis
The File Exchange contribution you are using, addaxis(), is only designed to add additional y axes, not additional x axes. See ...

4 years ago | 0

| accepted

Answered
What are good specifications for MacBook Pro which is fit with Matlab?
Your choices at the moment: 13" MacBook Pro: has M2 chip 14" and 16" MacBook Pro: has M1 Pro chip or M1 Max chip https://9to5...

4 years ago | 0

| accepted

Answered
How to plot imported data into matlab equations
syms omega mu epsilon sigma Symbolic variables. k1 = omega .* sqrt((mu .* epsilon)/(2)) .* sqrt(sqrt(1 + ((sigma)/(epsilon .* ...

4 years ago | 0

Answered
What exactly does input/output range parameter do in ANN structure?
The input is declared to fall in the range 0 to 100. The data is shifted and rescaled to be in the range 1 to 200 scaled_data =...

4 years ago | 0

Answered
regstats The design matrix has more predictor variables than observations.
reg_results = regstats(tdata(:,c.fut_ret), [log(tdata(:,c.cap)), log(tdata(:,c.bm)), tdata(:,c.pe)], 'linear', {'beta'}); ...

4 years ago | 0

Answered
Why is my data not working for the trainNetwork function?
Your y is a cell array of categoricals, in which each entry is a column vector. The entries must be row vectors instead. Ytrain...

4 years ago | 0

| accepted

Answered
whats wrong with this code?
my_tab.Properties.RowNames = LastName; You are referring to LastName with a capital N. You have not defined a LastName with a c...

4 years ago | 0

Answered
Facing problem while solving this.
p1{1} = @(x) (1./F(x)) .* ((0.5 .* hbar(x)) - Q); P{1} = @(x) integral(p1{1}, 0, x, 'ArrayValued', true); xi = l...

4 years ago | 0

| accepted

Load more