답변 있음
Automatically create variable names
NameIndex=1; Value=2; eval(sprintf('Name_%u=%d',NameIndex,Value)); This is possible by eval but as mentioned in the comments ...

대략 1년 전 | 0

답변 있음
MEX file debugging with MS Visual Studio
As @Friedrich said, MEX file functions are loaded dynamically, so the function needs to be called once in MATLAB to load symbols...

대략 1년 전 | 0

문제를 풀었습니다


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

대략 1년 전

문제


Integer vector optimal lossless deduplication
You're given an integer vector A, a Min scalar and a Max scalar. You can assume all elements in A are in [Min,Max] range, and nu...

대략 1년 전 | 2 | 솔버 수: 2

문제


Is the number of 1s in a binary integer odd or even?
Your function should turn the input integers into binary form and count the number of 1s in the binary. If the number is odd, re...

1년 초과 전 | 1 | 솔버 수: 19

문제


Ambiguous concatenation
Give two expressions that can have different meaning inside/outside a concatenation expression.

1년 초과 전 | 0 | 솔버 수: 3

제출됨


MATLAB 括号 语法 大全 Parentheses Syntax
MATLAB三大括号()[]{}傻傻分不清?用法经常搞混?各种出错不知道该用哪个?本示例列出了MATLAB三大括号的所有语法,全网最详尽最全面!吃透了它你就再也不会有问题!

1년 초과 전 | 다운로드 수: 1 |

Thumbnail

문제를 풀었습니다


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

1년 초과 전

답변 있음
Compare strings which contains the same pattern by ignoring case sensitivity and some expressions like underscores
You might remove those expressions to be ignored and unify the strings all to lowercase before doing actual comarison.

1년 초과 전 | 0

| 수락됨

답변 있음
How to I create variables with different names in the workspace using for loop?
You're too new to MATLAB to write any actual code. Learn your first course on https://matlabacademy.mathworks.com/ before doing...

1년 초과 전 | 0

문제를 풀었습니다


Curry a function handle
From Wikipedia, Currying: In mathematics and computer science, currying is the technique of converting a function that takes mu...

거의 2년 전

문제


Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...

거의 2년 전 | 0 | 솔버 수: 4

문제를 풀었습니다


Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...

거의 2년 전

문제를 풀었습니다


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

거의 2년 전

문제


Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...

거의 2년 전 | 1 | 솔버 수: 17

문제를 풀었습니다


Undocumented MATLAB tricks No. 2 - Tell the parfor index
Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a ...

거의 2년 전

답변 있음
数值索引和逻辑索引哪个更快?
测试方法 测试函数: function IndexingTest(FullNumber,SelectNumber) Set=false(FullNumber,1,'like',logical(FullNumber)); Index=cast(ran...

거의 2년 전 | 0

| 수락됨

질문


数值索引和逻辑索引哪个更快?
Index=find(Array==Element); Array(Index)=0 上述代码往往会被提示可以省略find,直接使用逻辑索引而不是数值索引。 省略一个函数调用当然会更快,这不难理解。 但如果Index还将要继续用于后续其它数组的索引...

거의 2년 전 | 답변 수: 1 | 1

1

답변

답변 있음
无法加载产品文件。产品文件与输入文件必须在同一文件夹内
请提供错误截图

거의 2년 전 | 0

답변 있음
gui中,使用ginput获取屏幕上的点,响应速度越来越慢
你这个函数本身不会造成响应变慢,应该是其它代码的问题。

거의 2년 전 | 0

답변 있음
非线性微分方程
>> s = dsolve(eqn,cond) 警告: Unable to find symbolic solution. 没有精确解。 这没什么奇怪的,一个一般的微分方程大概率没有精确解。

거의 2년 전 | 1

답변 있음
无法连接网络,启动matlab立即报错
你MATLAB安装有问题,卸载重装吧

거의 2년 전 | 0

답변 있음
我的MATLAB使用不了滑动条,应该是缺少uislider函数,但是不知道怎么修补
uislider是R2016a推出的函数,你是不是MATLAB版本太老? 如果版本没问题就是安装损坏了,卸载MATLAB重装吧

거의 2년 전 | 0

답변 있음
在使用ode45函数求解微分方程出错,无法执行赋值,因为左侧和右侧的元素数目不同
这种简单问题断点调试一下就行了

거의 2년 전 | 0

답변 있음
错误使用 sprintf 无法将 'matlab.ui.Figure' 值转换为 'int64'
gcf是当前图窗Figure对象,又不是一个数值,怎么可能用sprintf当作数值输出呢?你要输出图像编号的话就得手动指定一个数值编号

거의 2년 전 | 0

답변 있음
Is there any data type equivalent for queue?
parallel.pool.PollableDataQueue As revealed by the package name, it can be shared among parallel workers.

거의 2년 전 | 0

제출됨


MATLAB 搜索 路径 管理 系统 Search Path Manager
本工具箱面对的是多用户计算机的管理员,帮助管理员配置MATLAB路径,以便多个用户可以互不干扰地使用同一份MATLAB安装。

대략 2년 전 | 다운로드 수: 3 |

Thumbnail

질문


What's the best way to prevent a class from being instantiated?
I want this class to be completely static and can never be instantiated. It only contains a bunch of static methods and constant...

대략 2년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Why do I get a permission denied error in regards to classpath.txt or pathdef.m when starting MATLAB?
This is a very ugly design! All path settings should be user-wide instead of system-wide by default! MATLAB default pathdefs sh...

2년 초과 전 | 1

더 보기