Answered
shallow neural network way to extract
Yes, certainly. A shallow neural network is pretty much just a struct. You can extract the fields and export them in whatever bi...

4 years ago | 0

Answered
How do I plot a function using symbolic expressions?
See symfun for creation of symbolic functions . You would first str2sym the expression without the @(x) and you would pass the r...

4 years ago | 1

| accepted

Answered
Is road runner available for student license?
No. Only the products listed at https://www.mathworks.com/store/link/products/student/SV?s_tid=ac_buy_sv_but1 can be purchaed fo...

4 years ago | 1

Answered
I have these warnings in my code. Can anybody help me? Thanks
for i=length(rpms):-1:1 The calculations in your loop do not depend upon i, so you are generating exactly the same data every t...

4 years ago | 0

Answered
How would you make these for loops dynamically recursive?
For the case of integers, then what you are asking for looks to be what is known as Integer Partitions. You can use https://www....

4 years ago | 0

| accepted

Answered
How to insert a string to a variable name
sub_ID={'sub-x421m9_'}; for k=0 A = sub_ID{k+1}; [R,P]=corrcoef(sub1); save(A,'R'); end

4 years ago | 0

Answered
Unknown Error at MATRIX 1
The parsing rules are different inside [] or {} than outside those. Inside those the parser is always looking to see if the s...

4 years ago | 0

Answered
Error: Creation of Function Handle is not supported by arrayFun call.
You have more than one challenge here. The one that is more limiting is that ode45 and the similar functions do not support G...

4 years ago | 1

Answered
How to unpack mono12packed data images from preview
<https://www.mathworks.com/help/imaq/returnedcolorspace.html>

4 years ago | 0

Answered
VideoWriter - Error using FilesLoad
Are you using Windows? Colon is not a valid character in a windows file name except for drive indicator

4 years ago | 0

| accepted

Answered
Convert rgb values in a matrix to individual colors
Color perception is non-uniform and non-linear. Unless you have a table that lists the names for those exact rgb values (to with...

4 years ago | 0

| accepted

Answered
Give answer in matlab as per below question conditionPlease share answer
Initialize: Set a flag indicating that you have not had any output so far Outer loop: Set a current value for TH temperature ...

4 years ago | 0

Answered
I'm not getting the correct result for the u, i want it in degree but the ans is not right, the plot is not smooth.
oi = rad2deg(t); u = asind((nt.*sin(oi))./ni); You convert to degrees but then sin() which is a radian operation. You used...

4 years ago | 0

Answered
Reading data from a website
After you read the characters you can pass them to textscan as the first parameter. You should see either pass Headerlines or Co...

4 years ago | 0

Answered
Not sure how to continue/finish this problem
No, you *do* need the sum. The task is initialize variables start a for loop generate the next term if the ...

4 years ago | 0

Answered
How does traffic light detection work?
autoware is a third party open source code. Questions about it are not relevant here. https://www.mathworks.com/matlabcentral...

4 years ago | 0

Answered
Differential equation error.
U0=@(t)(0.95+(0.005./I(t))); Ust=@(t)(U0(t)+(r0*abs(I(t))))*Lp; G=@(t)(abs(I(t)))./Ust(t); g0 = 0.1; fun = @(t,g) ...

4 years ago | 0

Answered
please guide me how to do if loop
while true s = input(inpt); check whether s is numeric scalar 1 2 or 3 if it is a valid choice break; ...

4 years ago | 0

Answered
How to define color on matrix figure
Create a black underlayer and make the image transparent everywhere it is 0. [R2, P2] = corrcoef(x_avg_cor_time2); figure; Z ...

4 years ago | 0

Answered
matrix inversion doesn't fully utilize cpu
They are also sparse matrices. I assume the code should parallelize the inversion efficiently No, in general the inverse of a s...

4 years ago | 0

Answered
How do fix this code to give me the error?
h=h*10; tt=100:h:1500; CcPp=(.00000000747989.*tt.^3)-(.000028903.*tt.^2)+.0423484.*tt+36.1064; aa=trapz(tt,Cc...

4 years ago | 0

Answered
how to act on a probability
Well, there are two different approaches: you could calculate statistically, probability times number of calls, and round() or ...

4 years ago | 0

Answered
solve the two dimensional diffusion equation on a square with $u$ equal zero on the boundaries.... HI can someone help me to fix the code? it always has error when i run code
You could get that error if your file was itself named u -- which would make u into a function. When you have a function and a v...

4 years ago | 0

Answered
Multiplication of function handles and integrating it
Multiplying function handles will never be supported by MATLAB. You need to invoke the handles on data and multiply the results....

4 years ago | 1

| accepted

Answered
Extract data between 2 point over a 2d matrix.
improfile() or interp2() (which is what improfile uses) You do have a potential issue if you are using a nonlinear coordinate...

4 years ago | 0

| accepted

Answered
Fast binary decoding of very large matrix of uint8s
I posted timing tests on various conversion options at one point. build a look table in which each column is 4 uint8. Take...

4 years ago | 0

Answered
how to extract the pixel value of tumor in uint16 .mat from logical .mat?
uint8() the logical mask and multiply by the uint8 data. The locations where the mask is false will come out 0.

4 years ago | 0

Answered
I would like to solve more than 100 algebra questions with vpasolve; how do i use loop to achieve it?
create a 2 x 1 variable that contains the current initial guess. Initialize it outside of the loop. Inside of the loop, pass the...

4 years ago | 1

Answered
Error While Saving the Raw data into Binary Image.
We talked to you about this already. Your min x and max x are the same so your linspace is all the same value. There is no wa...

4 years ago | 0

Load more