답변 있음
Convert 3 greyscale images representing RGB to RGB image
Using the standard conventions: RGB=cat(3,red(:,:,1),green(:,:,1),blue(:,:,1)); The indexing is in there in case your in...

대략 4년 전 | 1

| 수락됨

답변 있음
Add an expression to the result
Appart from the other answer providing you with a solution to your question (i.e. to use fprintf), there is another issue: im=i...

대략 4년 전 | 0

답변 있음
cube root of -1
The nth root of a value has n values: x=-1; root=3; R=abs(x); theta=angle(x); k=linspace(0,2,root+1);k(end)=[]; new_R=...

대략 4년 전 | 0

답변 있음
Revert to default interactivity in Figure/axes
(untested idea) You could iteratively loop through the children objects of your figure, wiping all callback properties. That ...

대략 4년 전 | 0

답변 있음
readstruct getting error when attempt to run function in background
Apparently it calls cd somewhere internally. You could try reading the file will xmlread and parse to a struct with parseXML....

대략 4년 전 | 0

답변 있음
terminating a parfor loop early
I personally use the now function a lot. The number it returns is in days, so you will have to scale your max time to fractional...

대략 4년 전 | 1

답변 있음
using output of one button as an input in another button
If you really want to, you can call the callback function like any other function. However, it makes much more sense to only us...

대략 4년 전 | 0

| 수락됨

답변 있음
function of readtable in matlab
You are misunderstanding what the Matlab path is. The Matlab path is where Matlab will look for functions. As a bonus you will a...

대략 4년 전 | 0

| 수락됨

답변 있음
How To Migrate / Connect an Uicontrol Spinner Function To GUI created by GUIDE
What you want is not possible with the builtin uispinner function. As its documentation states the parent can only be a uifigure...

대략 4년 전 | 0

| 수락됨

답변 있음
I have a loop containing about 6 operations, there is a logic statement that applies to 5/6 of the functions.
You are implementing several functions now. You should consider splitting up your function to several parts. You can use varargi...

대략 4년 전 | 0

답변 있음
loading xn data signals of data.txt
No loops required: xn=rand(1000,1);%replace this with the code reading your text file X=[xn-1;xn-2];

대략 4년 전 | 0

| 수락됨

답변 있음
Using loops to perform vector functions
There is an mlint warning on line 7. If you hover your mouse over it, you will see a message that this input is not being used. ...

대략 4년 전 | 0

| 수락됨

답변 있음
program is not working
You didn't explicitly set a value to R. If you had pre-allocated it, that would have prevented an R from a previous run to affec...

대략 4년 전 | 0

| 수락됨

답변 있음
Taylor series for cos x
There are a few edits you should make to your function: % If you want a third input, just add it like this: % (don't forget to...

대략 4년 전 | 0

답변 있음
please is there any inbuilt function for harmonic function?
There actually is a builtin that will give you the answer: inf As for implementing the function yourself, that is probably hom...

대략 4년 전 | 0

답변 있음
Run MATLAB twice at the same time
You mean you want to have two separate instances of Matlab running? That is possible. Running the same function is also not a pr...

대략 4년 전 | 0

| 수락됨

답변 있음
Specifying several authors for a contribution
Please post this as a request here. There is Mathworks staff monitoring that thread, so that is the best way to make your voice ...

대략 4년 전 | 0

답변 있음
Anybody knows how to do to this script goes faster?
Using ismember will already speed up your loop by a lot. The point is that you are analysing a lot of data, so it just will take...

대략 4년 전 | 1

| 수락됨

답변 있음
Pourquoi demander 2 fonctions
There isn't any fundamental (Matlab-related) reason. Maybe your teacher wants you to realize that you can implement eqi2tfx b...

대략 4년 전 | 0

답변 있음
issue with 'intersect' function
Decimals are difficult for computers, since they work in binary, not base 10. Say I ask you to divide 1 by 3. You answer 0.33...

대략 4년 전 | 0

답변 있음
Hi, may i know how to create a loop in this code for image subtraction? X is the reference image and variable in Y , I have 10 images in the folder
Use a for loop. You can use the sprintf function to generate the file name based on the iteration number, and you can use sub...

대략 4년 전 | 0

제출됨


JSON
Matlab/Octave JSON parser

대략 4년 전 | 다운로드 수: 1 |

0.0 / 5

답변 있음
The graph wont be appear
Do what the error message tells you to do: y= t.^2 .* cos(t);

대략 4년 전 | 1

답변 있음
Change array elements that meet a condition - Multidimensional array case
I can think of two ways: # using a loop # replicating B in the third dimension to match the size of A I suspect the first...

대략 4년 전 | 0

답변 있음
How I can convert from binary to character?
Your binary data seems to require some modification before it contains what you expect. data=[0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 0...

대략 4년 전 | 0

| 수락됨

답변 있음
Correct Magic Square to text file?
Your file is written row by row, while Matlab will read the data in B column by column. So while most people would not expect t...

대략 4년 전 | 0

답변 있음
Is Live editor included in the Matlab licence or a separate program?
Live scripts (along with the live editor) were introduced in R2016a. They are a part of base Matlab (so it doesn't require any t...

대략 4년 전 | 0

답변 있음
Finding the indices of the elements of one array in another
You muct have thought of this already (as it is one of your tags), but ismember does what you need: A = ["G1", "V2", "G3", "G4"...

대략 4년 전 | 0

| 수락됨

답변 있음
MATLAB GUI - how to make a button change a value then close window
If you add uiwait before the nested function, this will pause execution of the main function. This will give the user time to cl...

대략 4년 전 | 0

답변 있음
QSS toolbox 2018 version
If you have a relatively recent release of Matlab, you can use the AddOn Manager to get it, but you can download it from the fil...

대략 4년 전 | 0

더 보기