Answered
Monte Carlo simulation for probability of a multi part machine working
Hello Petch, First of all, check the help of randi. You can type help randi from the command line window of matlab. You didn't ...

4 years ago | 0

Answered
How can i lock editor window?
Change your file to be readonly, then you won't accidentally modify your file. Always keep a copy of the working file.

4 years ago | 0

| accepted

Answered
I have a problem saving data
Do you have write permission to that folder? If not, try cd to another folder and save there.

4 years ago | 0

Answered
How to mark different plots within the same loop?
https://www.mathworks.com/help/matlab/creating_plots/create-line-plot-with-markers.html

4 years ago | 0

Answered
How to use if statement for than one variables?
You meant this? if a(ii)==0 b(ii)=1; c(ii)=0; elseif a(ii)==1 b(ii)=0; c(ii)=0; elseif a==2 b(ii)=...

4 years ago | 0

Answered
How can I calculate carnot factor of a fractal tree ?
Hints: Try to understand what function rotate is doing. Pay attention to those three lines between if and end. Try to understa...

4 years ago | 0

| accepted

Answered
Connect to remote shared matlab session from python/C++
My understand is that python doesn't connect to a matlab session. Instead, python is calling functions/sevices from matlab runti...

4 years ago | 0

Answered
acceleration function not working in script?
In general, the debugger shall be able to show you the reason. Just run your Untitle2.m using the matlab debugger, and put a bre...

4 years ago | 0

Answered
How can I define the angle of the fractal tree and not the axis ?
20 in your code is the angle you want. Your rotate function can be enhanced to take one more argument to control that. functi...

4 years ago | 0

| accepted

Answered
Unable to resolve the name matlab.engine.start_matlab.
Those two lines of code shall be run in python. Use a command line window from MacOS, and type python to start. Then type those...

4 years ago | 0

Answered
how to code this system block diagram
This seems to be a problem very specific to the course you are taking? If so, you might want to start with your teacher/instruct...

4 years ago | 0

Answered
How to increase speed of this code
Hello Asha, matlab provides profile for this purpose. (https://www.mathworks.com/help/matlab/ref/profile.html). Try it please....

4 years ago | 0

Answered
merge two arrays into one
Not sure what you really want. If those two arrays have the same length at the time, and if the ith element of one array is no...

4 years ago | 0

Answered
getting error in line 5 please help
Use the matlab debugger. It will tell you what error it is.

4 years ago | 0

Answered
Error using loadlibrary --- fatal error: cstdint: No such file or directory
This header file requires C++11.

4 years ago | 0

Answered
How to fix number of iterations?
Try help wavefun on command line window to see the help for this function. The ITERis used as 2^ITER.

4 years ago | 0

Answered
can any one help on this i dont know how to solve it !!
Time to learn how to use the matlab debugger? https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features...

4 years ago | 0

Answered
AbstractPolicy.m debug warning
Hello kloner, Basically it means that 'this' can not be an array. It must be a scaler. As explained in the comment, if you have...

4 years ago | 0

Answered
how to find length of binary image?
How about reading in the image, and then find its size: https://www.mathworks.com/matlabcentral/answers/81089-finding-the-dimen...

4 years ago | 0

Answered
Save double vector in text file
How about write it as a matrix to a CSV file? https://www.mathworks.com/matlabcentral/answers/281156-how-can-i-export-a-matrix...

4 years ago | 0

Answered
Invalid MEX-file libopencv_core.so.2.4: cannot open shared object file: No such file or directory
Two things to try. On linux, ldd is a very useful tool. Try ldd rodriguesMex.mexa64. This will tell you if all the symbols can ...

4 years ago | 2

| accepted

Answered
How to get the one by one value of array using variable?
Hello Aqeel, You want this, right? node=[9 44 5]; [m,n]=size(node); for i=1:m for j=1:n tmpVar = node(m, n)...

4 years ago | 0

| accepted

Answered
for loop only shows the value of last iterations
Hello Han Xia, You want P1 to be an array, right? How about this? Po = 101325; V = 12000; E = V .* (3.5.*10.^6); Z = [25 50...

4 years ago | 0

| accepted

Answered
Supported version of MATLAB python engine
Hello Malte, As for your first question, when MATLAB Python Engine was developed, python 3.8 might not be released yet. Then it...

4 years ago | 0

Answered
Installing MATLAB Engine API for Python
Hello Makis, The error message suggests that the verions of MATLAB Engine is not compatible with the local python on you macboo...

4 years ago | 0

Answered
control the threshold of random numbers
Hello abdul, Both rand and randi generate uniformly distributed pseudorandom numbers. Now you want something not uniformly dist...

4 years ago | 1

Answered
how to save the matrix iteration results?
Please try this: https://www.mathworks.com/matlabcentral/answers/75936-is-there-any-way-to-create-array-of-arrays-or-matrix-of-...

4 years ago | 0

Answered
how to print the data that we collect using structure and loop
Hello Prateek, A simple way to print out the struct. Just get rid of the ';' at the end of the line. function details = my...

4 years ago | 0

Answered
Python fails to load after installing via (zsh's) pyenv (Python, R2018b, macos)
Hello Pete, Python path is different from the environment variable PATH. It is PYTHONPATH. Try to set PYTHONPATH instead. Than...

4 years ago | 0

Load more