Draw 'D'.
Draw a x-by-x matrix 'D' using 0 and 1.
example:
x=4
ans=
[1 1 1 0
1 0 0 1
1 0 0 1
1 1 1 0]
2 years ago
Solved
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example:
[q,r] = swap(5,10)
returns q = ...
2 years ago
Solved
Times 2 - START HERE
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Examples:...
2 years ago
Answered Matlab to solve finite difference for Ode
I tried running the code on my machine and it's working fine. You can paste this code to your machine and see if its working. I ...
Answered Phase portrait of a system of PDE
You can checkout this smiliar answer - https://in.mathworks.com/matlabcentral/answers/416516-3d-phase-portrait
Also I found a p...
3 years ago | 1
Answered Object position from a video
I found a MATLAB answer similar to this. You can look into that, it may help you.
https://in.mathworks.com/matlabcentral/answer...
3 years ago | 0
Answered Sinogram BY USING CT scan
You can checkout the following links for this. These may help you.
https://github.com/SanketD92/CT-Image-Reconstruction
https:...
3 years ago | 1
Answered Can't open files on MATLAB Online
You can click on the open option in the top left cornor and you should see the following window from which you can oprn the file...
3 years ago | 0
Answered Returning Incorrect index of array
So if you write y = x(x>0), then it will take value only which is greater than 0 from the x and put it into y.
x = [0 0.5 4 5];...
Answered Matlab code related to finance
The function 'hist_stock_data' accepts only three arguments if you're referring to this function.
So you can write like this i...