Respondida
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 ...

casi 5 años hace | 0

Respondida
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.

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 0

Respondida
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)=...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

| aceptada

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

| aceptada

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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....

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

Respondida
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.

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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 ...

casi 5 años hace | 2

| aceptada

Respondida
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)...

casi 5 años hace | 0

| aceptada

Respondida
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...

casi 5 años hace | 0

| aceptada

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

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

casi 5 años hace | 1

Respondida
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-...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Respondida
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...

casi 5 años hace | 0

Cargar más