回答済み
Matrix dimensions must agree. Error Message appears.
In your function PTFLASH_VLE_PRVDW you define: fL=zeros(1,c); fV=[1,1,1]; next you try to substract fV - fL, which wi...

5年弱 前 | 1

| 採用済み

回答済み
How to get difference between two time values ?
You can use etime, but you need to convert your strings first. I hope this helps: a=datetime pause(5) b=datetime a=datev...

5年弱 前 | 0

| 採用済み

回答済み
Undefine function or variable
In general you are more likely to receive an answer if you describe the problem you are facing and include any error messages. I...

5年弱 前 | 0

回答済み
Specifying attributes of objects created in GUIDE
If you want to do this in guide you can get there in 3 steps: 1.) right click on your object 2.) chose 'Property Inspector' 3...

5年弱 前 | 0

| 採用済み

回答済み
i keep on getting this error even after changing my codes multiple times using .* and etc. it keep on showing that i have prob with my equation when there is no visible problem.
Usually the error is straight forward and you can always check the size of your elements with (size) or using the debugger. In ...

5年弱 前 | 0

回答済み
Assign values to a structure using App designer
There are two different types of edit fields in appdesigner (numeric and text). In the picture you show are only text edit field...

5年弱 前 | 0

回答済み
How to give output of one push button as input to another push button??
It would be really helpful to get any information about what you have tried and why it is not working (wrong result, error messa...

5年弱 前 | 0

回答済み
Skipping even indices in a for-loop and subsequently avoiding the odd values to appear in the output
When you assign a value to A(3,3)=1, Matlab will create a Matrix of the size 3,3 and will fill empty fields with 0. A(3,3)=1 ...

5年弱 前 | 0

| 採用済み

回答済み
delete variable file name
Try this: delete(sprintf('%s.sim',newname))

5年弱 前 | 1

| 採用済み

回答済み
I am trying to add two numbers in App designer code view and i am getting following error message
You need to access the value stored in your edit fields: a = app.EditField.Value; b = app.EditField2.V...

5年弱 前 | 1

| 採用済み

回答済み
hObject error in execution of a checkbox
Your checkbox function does not know 'hObject': function checkbox() handles.fig=figure; handles.cbh = zeros(40,1); handl...

5年弱 前 | 1

| 採用済み

回答済み
How to write repeating string with variables in for loop
Check if this works for you. for i=1:75 line1 = ' new ScreenItem(ScreenVideoComponent,'; line2 = sprintf(' Video...

5年弱 前 | 1

| 採用済み

回答済み
Having some problems with recursive function
This strange behaviour originates in a unfortunate function name. function S = mySum(A) S = myplus(A, length(A)) function ...

5年弱 前 | 0

| 採用済み

解決済み


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

約5年 前

解決済み


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

約5年 前

解決済み


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

約5年 前

解決済み


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

約5年 前

解決済み


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

約5年 前

解決済み


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

約5年 前

解決済み


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

約5年 前

解決済み


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

約5年 前

解決済み


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

約5年 前

解決済み


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

約5年 前

解決済み


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

約5年 前

解決済み


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

約5年 前

解決済み


Return area of square
Side of square=input=a Area=output=b

約5年 前

回答済み
Accessing the Value of Variables in the Workspace
You can load your data into a structure: s=load('MyData.mat'); Now you can use fieldnames to obtain all variable names in yo...

約5年 前 | 1

| 採用済み

回答済み
Undefined variable in app designer when the variable called in external function
Your external function does not know which variables you use in your app. You need to pass them along. Try changing else pr...

約5年 前 | 0

| 採用済み

回答済み
Vector loop over multiple object handles inside a set function
You can use logical indexing. I wrote this earlier today for another question, but it is quite close to what you want to do: ...

約5年 前 | 0

回答済み
how to click push button one by one without visible the button?
You can use the enable property of a pushbutton. for i=3:-1:1 h.pb(i)=uicontrol('style','pushbutton','position',[50 50+(...

約5年 前 | 0

さらに読み込む