回答済み
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 ...

5年弱 前 | 0

回答済み
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.

5年弱 前 | 0

| 採用済み

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

5年弱 前 | 0

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

5年弱 前 | 0

回答済み
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)=...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

| 採用済み

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

| 採用済み

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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....

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
getting error in line 5 please help
Use the matlab debugger. It will tell you what error it is.

5年弱 前 | 0

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

5年弱 前 | 0

回答済み
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.

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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 ...

5年弱 前 | 2

| 採用済み

回答済み
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)...

5年弱 前 | 0

| 採用済み

回答済み
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...

5年弱 前 | 0

| 採用済み

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

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

5年弱 前 | 1

回答済み
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-...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

回答済み
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...

5年弱 前 | 0

さらに読み込む